midhunweb opened a new pull request, #8516:
URL: https://github.com/apache/gravitino/pull/8516

   [Improvement(core)] In ListTopicFailureEvent.java add precondition to check 
if namespace is not null
   ### What changes were proposed in this pull request?
   
   Added a null check in the ListTopicFailureEvent constructor using 
Objects.requireNonNull to ensure that the namespace is not null.  
   Added a unit test `testListTopicFailureEventWithNullNamespace()` in 
TestTopicEvent to verify that a NullPointerException is thrown when namespace 
is null.
   
   ### Why are the changes needed?
   
   To prevent potential NullPointerExceptions when creating a 
ListTopicFailureEvent with a null namespace and improve code robustness.
   
   Fix: #8507
   
   ### Does this PR introduce _any_ user-facing change?
   
   N/A
   
   ### How was this patch tested?
   
   N/A
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to