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

   ### What would you like to be improved?
   
   In 
clients/cli/src/main/java/org/apache/gravitino/cli/commands/CreateFileset.java, 
this line in handle() could cause a NPE if the property doesn't exist.
   ```
   boolean managed = properties.get("managed").equals("true");
   ```
   
   Here a test showing that:
   ```
    @Test
     void testOperationStatusNullHandling() {
       Assertions.assertDoesNotThrow(() -> 
CompatibilityUtils.toAuditLogStatus(null));
       Assertions.assertEquals(Status.UNKNOWN, 
CompatibilityUtils.toAuditLogStatus(null));
     }
   ```
   
   ### How should we improve?
   
   Defaulting to external mode if the property is missing.


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