justinmclean opened a new issue, #10134:
URL: https://github.com/apache/gravitino/issues/10134
### What would you like to be improved?
There is a failure path bug in AlterFilesetFailureEvent. When filesetChanges
is null, the constructor calls filesetChanges.clone() and throws
NullPointerException.
### How should we improve?
Potentially make the constructor null-safe by handling filesetChanges ==
null before cloning.
Here's a test to help:
```
public class AlterFilesetFailureEventTest {
@Test
public void testNullFilesetChangesDoesNotThrow() {
Assertions.assertDoesNotThrow(
() ->
new AlterFilesetFailureEvent(
"user", NameIdentifier.of("metalake", "catalog", "fileset"),
new Exception(), null));
}
}
```
--
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]