]
Kris Verlaenen updated DROOLS-1604:
-----------------------------------
Sprint: 2017 Week 22-23 (was: 2017 Week 22-23)
Missing clone for indexing declaration in MvelConstraint
--------------------------------------------------------
Key: DROOLS-1604
URL:
https://issues.jboss.org/browse/DROOLS-1604
Project: Drools
Issue Type: Bug
Components: core engine
Reporter: Mario Fusco
Assignee: Mario Fusco
Indexing declaration in MvelConstraint is not cloned when a 'or' is processed and
this in turn causes that the wrong field is indexed for a branch of the 'or' or
even that it attempts to index on a not existing causing the following NPE:
{code}
java.lang.NullPointerException
at org.drools.core.reteoo.BaseLeftTuple.getObject(BaseLeftTuple.java:629)
at org.drools.core.reteoo.BaseTuple.getObject(BaseTuple.java:48)
at
org.drools.core.util.AbstractHashTable$FieldIndex.hashCodeOf(AbstractHashTable.java:333)
{code}