+++ This bug was initially created as a clone of Bug #826935 +++ The following tests throw NPE: org.drools.verifier.data.VerifierDataMapsTest.testSaveVerifierComponentAndGetForAllComponentTypes org.drools.verifier.data.VerifierDataMapsTest.testSaveVerifierComponentAndGetForAllFields org.drools.verifier.data.VerifierDataMapsTest.testSaveVerifierComponentAndGetForAllRestrictions org.drools.verifier.data.VerifierDataMapsTest.testSavePatternAndGet java.lang.NullPointerException at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at org.drools.verifier.data.VerifierDataMaps.add(VerifierDataMaps.java:162) at org.drools.verifier.data.VerifierDataMapsTest.saveVerifierComponentAndGet(VerifierDataMapsTest.java:321) at org.drools.verifier.data.VerifierDataMapsTest.testSaveVerifierComponentAndGetForAllComponentTypes(VerifierDataMapsTest.java:105) All the tests in class fail with similar exception. From the test, it seems that objects added to the map are not null and their values used in compareTo() are not null either. This happens only with Sun JDK 7.
Mario, would you mind looking at this? It's an approved blocker. Feel free to reassign, if you feel like this is more appropriate for someone else.
The problem was indeed caused by a null key passed to TreeMap. I fixed this issue by initializing all the TreeMaps with a null safe comparator.
This issue's fixes have been picked by ER9. Please verify them on ER9.
The mentioned issues don't appear in ER9 anymore. VERIFIED.
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.