yesamer opened a new pull request, #6739: URL: https://github.com/apache/incubator-kie-drools/pull/6739
Closes: https://github.com/apache/incubator-kie-issues/issues/2334 # NPE in AbstractTDefinitions.getDecisionService() ## Summary `getDecisionService()` throws NPE when `drgElement` is null. A DMN Definitions can legitimately have no DRG elements. ## Location `kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/impl/AbstractTDefinitions.java:152` ## Problem ```java return drgElement.stream()... // NPE if drgElement is null ``` ## Fix ```java return getDrgElement().stream()... // Uses null-safe getter ``` Added test for entire AbstractTDefinitions class. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
