You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/19 07:00:44 UTC

[I] [Improvement] Possible Null Pointer Exception in TestEntityCombinedFileset.java [gravitino]

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

   ### What would you like to be improved?
   
   An NPE can potentially occur as hiddenProperties is not initialised.
   
   Here is a unit test showing that:
   ```
     @Test
     void testPropertiesWithoutHiddenProperties() {
       Fileset fileset = Mockito.mock(Fileset.class);
       ImmutableMap<String, String> properties =
           ImmutableMap.of("propA", "valueA", "propB", "valueB");
       Mockito.when(fileset.properties()).thenReturn(properties);
   
       EntityCombinedFileset entityCombinedFileset = EntityCombinedFileset.of(fileset);
   
       Assertions.assertEquals(properties, entityCombinedFileset.properties());
     }
   ```
   
   ### How should we improve?
   
   initialise hiddenProperties


-- 
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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Possible Null Pointer Exception in TestEntityCombinedFileset.java [gravitino]

Posted by "JeonDaehong (via GitHub)" <gi...@apache.org>.
JeonDaehong commented on issue #8168:
URL: https://github.com/apache/gravitino/issues/8168#issuecomment-3203892878

   This issue has been assigned to me, and I will submit a PR within a week.
   
   Thank you.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Possible Null Pointer Exception in TestEntityCombinedFileset.java [gravitino]

Posted by "JeonDaehong (via GitHub)" <gi...@apache.org>.
JeonDaehong commented on issue #8168:
URL: https://github.com/apache/gravitino/issues/8168#issuecomment-3208286946

   OK! Thanks for the comment !


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Possible Null Pointer Exception in TestEntityCombinedFileset.java [gravitino]

Posted by "JeonDaehong (via GitHub)" <gi...@apache.org>.
JeonDaehong commented on issue #8168:
URL: https://github.com/apache/gravitino/issues/8168#issuecomment-3206258254

   @justinmclean 
   
   Do we also need to add a unit test for this improvement?


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Possible Null Pointer Exception in TestEntityCombinedFileset.java [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean closed issue #8168: [Improvement] Possible Null Pointer Exception in TestEntityCombinedFileset.java
URL: https://github.com/apache/gravitino/issues/8168


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Possible Null Pointer Exception in TestEntityCombinedFileset.java [gravitino]

Posted by "JeonDaehong (via GitHub)" <gi...@apache.org>.
JeonDaehong commented on issue #8168:
URL: https://github.com/apache/gravitino/issues/8168#issuecomment-3200294706

   Hello, I would appreciate it if you could assign this to me!


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Possible Null Pointer Exception in TestEntityCombinedFileset.java [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8168:
URL: https://github.com/apache/gravitino/issues/8168#issuecomment-3208230838

   Yes, you should always add to the unit test to cover any changes.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org