I'm getting a null pointer exception when using optaplanner with a drools set up. this happens in org.drools.core.rule.constraint.MvelConstraint.java
in the method evaluate
. the null object is leftTuple:
protected boolean evaluate(InternalFactHandle handle, InternalWorkingMemory workingMemory, LeftTuple leftTuple) {
if (!jitted) {
if (conditionEvaluator == null) {
createMvelConditionEvaluator(workingMemory);
if (TEST_JITTING && !isDynamic) { // Only for test purposes
boolean mvelValue = forceJitEvaluator(handle, workingMemory, leftTuple);
}
}
if (!TEST_JITTING && !isDynamic && invocationCounter.getAndIncrement() == JIT_THRESOLD) {
jitEvaluator(handle, workingMemory, leftTuple);
}
}
return conditionEvaluator.evaluate(handle, workingMemory, leftTuple);
}
Any ideas what might cause this? Geoffrey?