nagarajgond opened a new issue, #6543: URL: https://github.com/apache/incubator-kie-drools/issues/6543
### Description Below rule throws NullPointerException. Please help me to understand what is wrong with this rule. ### Steps to Reproduce Clone this repo [code](https://github.com/nagarajgond/drools-rule) Run RuleProvider.java ### Error ``` Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "org.drools.base.rule.Declaration.getTupleIndex()" because "declaration" is null at org.drools.core.common.ActivationsManager.handleException(ActivationsManager.java:87) at org.drools.core.phreak.RuleExecutor.fireActivationEvent(RuleExecutor.java:445) at org.drools.core.phreak.RuleExecutor.fireActivation(RuleExecutor.java:416) at org.drools.core.phreak.RuleExecutor.fire(RuleExecutor.java:155) at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:92) at org.drools.core.concurrent.AbstractGroupEvaluator.evaluateAndFire(AbstractGroupEvaluator.java:48) at org.drools.core.impl.ActivationsManagerImpl.fireLoop(ActivationsManagerImpl.java:309) ``` ``` package com.test.drl; unit PolicyUnit; import com.test.drl.BasicIpUtils; import com.test.drl.StringUtils; global com.test.drl.ListManager listManager; rule "rule5_preprocess1" salience -997 when ($f: /facts [ name == "address", value == "1.1.1.1" ]) or ( not $f: /facts [ name == "location.city" ] ) or ( $f: /facts [ name == "address", value == "1.1.1.2"]) then $f.setPreprocess1(true); facts.update($f); System.out.println("rule5_preprocess1 fired for fact: " + $f); end ``` -- 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]
