justinmclean opened a new issue, #8031:
URL: https://github.com/apache/gravitino/issues/8031

   ### What would you like to be improved?
   
   In common/src/main/java/org/apache/gravitino/audit/InternalClientType.java, 
there is a possible NPE if clientType is null. Here is a test to show this:
   ```
     @Test
     public void testCheckValid() {
       Assertions.assertTrue(InternalClientType.checkValid("HADOOP_GVFS"));
       Assertions.assertFalse(InternalClientType.checkValid("NO_SUCH_CLIENT"));
       Assertions.assertFalse(InternalClientType.checkValid(null));
     }
   ```
   
   ### How should we improve?
   
   Add a null check and return false


-- 
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