[jboss-jira] [JBoss JIRA] (DROOLS-2580) KieScannerHolder throws an NullPointerException at normal drools startup that is later catched somewhere. This is a pita for debugging

Geoffrey De Smet (JIRA) issues at jboss.org
Tue May 22 09:53:00 EDT 2018


Geoffrey De Smet created DROOLS-2580:
----------------------------------------

             Summary: KieScannerHolder throws an NullPointerException at normal drools startup that is later catched somewhere. This is a pita for debugging
                 Key: DROOLS-2580
                 URL: https://issues.jboss.org/browse/DROOLS-2580
             Project: Drools
          Issue Type: Bug
          Components: core engine
            Reporter: Geoffrey De Smet
            Assignee: Mario Fusco
         Attachments: Selection_763.png

This method:
org.drools.compiler.kie.builder.impl.KieRepositoryImpl.KieScannerHolder#getInternalKieScanner
throws an NPE when starting an example in optaplanner-examples.

That NPE is then immediately caught by line 88 by the catch-all-exceptions, but meanwhile it has stopped my debugger NPE breakpoint, which is pita. *Exceptions should not be used for flow control.*



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list