[
https://issues.jboss.org/browse/JBRULES-3532?page=com.atlassian.jira.plug...
]
Geoffrey De Smet resolved JBRULES-3532.
---------------------------------------
Fix Version/s: 5.5.0.Beta1
Resolution: Partially Completed
NPE in DefaultHardAndSoftScore.compareTo()
------------------------------------------
Key: JBRULES-3532
URL:
https://issues.jboss.org/browse/JBRULES-3532
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-planner
Affects Versions: 5.4.0.Final
Reporter: Martin Vecera
Assignee: Geoffrey De Smet
Fix For: 5.5.0.Beta1
When running a benchmark on a very slow machine (virtual machine), hard and soft part of
the score might remain uninitialized for long time (might be related to JBRULES-3413).
This discovered an issue in the compareTo() method.
Caused by: java.lang.NullPointerException
at
org.drools.planner.core.score.buildin.hardandsoft.DefaultHardAndSoftScore.compareTo(DefaultHardAndSoftScore.java:125)
at
org.drools.planner.core.score.buildin.hardandsoft.DefaultHardAndSoftScore.compareTo(DefaultHardAndSoftScore.java:27)
at
org.drools.planner.benchmark.core.ProblemBenchmark.determineWinningResult(ProblemBenchmark.java:180)
at
org.drools.planner.benchmark.core.ProblemBenchmark.benchmarkingEnded(ProblemBenchmark.java:173)
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmarkingEnded(DefaultPlannerBenchmark.java:201)
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:135)
at org.drools.planner.examples.tournaments.Benchmark.main(Benchmark.java:25)
... 6 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira