justinmclean opened a new issue, #8304:
URL: https://github.com/apache/gravitino/issues/8304
### What would you like to be improved?
In lineage/src/main/java/org/apache/gravitino/lineage/LineageService.java
dispatchLineageEvent could throw a NPE
### How should we improve?
Add a null check and return false.
Here's a unit test to help:
```
@Test
public void testDispatchLineageEventWithoutInitialization() {
LineageService service = new LineageService();
Assertions.assertFalse(service.dispatchLineageEvent(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]