Hello Guys,
I'm having a NPE in the ClassFieldExtractor.getValue(InternalWorkingMemory, Object) line: 127
It happens while executing the RHS of a rule that modifies one fact and then updates one and retract another.
rule "foo"
when
...
then
// apply changes
PolicyHelper.makeInPolicy($room, $pRoom.getCompliantRuleId(),
$pRoom.getPrefLevel(), ProfileTypeEnum.COMPANY);
update($room);
retract($pRoom);
end
--
We're using good old 4.0.7, with ShadowFacts :(
I tracked down the problem to
FactHandleIndexHashTable$FieldIndexEntry.matches(ReteTuple, int) line: 385
this.first.getFactHandle()
public boolean matches(final ReteTuple tuple,
final int tupleHashCode) {
return this.hashCode == tupleHashCode && this.index.equal( this.first.getFactHandle().getObject(),
tuple );