You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "mathranger (via GitHub)" <gi...@apache.org> on 2026/02/04 01:14:05 UTC

[I] Drools null pointer shows up when executing rules with exists() clauses. [incubator-kie-issues]

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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Drools null pointer shows up when executing rules with exists() clauses. [incubator-kie-issues]

Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on issue #2235:
URL: https://github.com/apache/incubator-kie-issues/issues/2235#issuecomment-3845793982

   Hi @tkobayas, can you please check this issue? Thanks.


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Drools null pointer shows up when executing rules with exists() clauses. [incubator-kie-issues]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #2235:
URL: https://github.com/apache/incubator-kie-issues/issues/2235#issuecomment-3871078395

   Fixed by https://github.com/apache/incubator-kie-drools/pull/6585 . Thank you for reporting and the reproducer!


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Drools null pointer shows up when executing rules with exists() clauses. [incubator-kie-issues]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas closed issue #2235: Drools null pointer shows up when executing rules with exists() clauses.
URL: https://github.com/apache/incubator-kie-issues/issues/2235


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Drools null pointer shows up when executing rules with exists() clauses. [incubator-kie-issues]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #2235:
URL: https://github.com/apache/incubator-kie-issues/issues/2235#issuecomment-3845828254

   Sure, I'll look.


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org