-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
7.8.0.Final
-
None
-
5
-
- Download the droolstestjar.zip maven project
- build the project and run the DroolsUtilsTest junit
-
NEW
-
NEW
This snippet:
// Using a wrong KB name causes a NPE KieContainer kc = DroolsUtils.getAndVerifyKieContainer("WrongKBName");
throws a NPE with thr following stacktrace
testSomeMethod(org.mydomain.drooltestjar.DroolsUtilsTest) Time elapsed: 1.065 sec <<< ERROR! java.lang.NullPointerException at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages(AbstractKieProject.java:207) at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:80) at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:68) at org.drools.compiler.kie.builder.impl.KieContainerImpl.verify(KieContainerImpl.java:343) ... ...