mathranger opened a new issue, #2235:
URL: https://github.com/apache/incubator-kie-issues/issues/2235

   Very complex conditions are triggering an error that shows up like:
   
   java.lang.NullPointerException: Cannot invoke 
"org.drools.core.reteoo.LeftTuple.getTupleSink()" because "lt" is null{}
   
   I have reduced the complexity to 2 rules with similar conditions that differ 
where a fact finds itself with respect to an exists() call.  The null "lt" is 
coming from a search through peers on a child of an ExistsNode.  One of the 
tuples that get created and associated to this node do not point to the correct 
node and we run out of links when searching peers.  This happens in the 
BetaNode.getStartTuple() method.  Either the nodes or the tuples are not 
getting constructed correctly.
   
   I have this setup in the attached DroolsPeerNullError.zip file.  Extract and 
run the main method and the error will be triggered.  Changing almost anything 
about the conditions stops the error from happening so it is tied closely to 
exactly what has been put in this test.
   
   
[DroolsPeerNullError.zip](https://github.com/user-attachments/files/25059796/DroolsPeerNullError.zip)
   
   I have tested this on latest release for drools codebases from 7 to 10 and 
it is happening on all of them.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to