[jboss-jira] [JBoss JIRA] (DROOLS-2241) Wrong pattern cloning causes missing FromNode sharing and eventually a NPE

Mario Fusco (JIRA) issues at jboss.org
Fri Jan 12 09:59:00 EST 2018


Mario Fusco created DROOLS-2241:
-----------------------------------

             Summary: Wrong pattern cloning causes missing FromNode sharing and eventually a NPE
                 Key: DROOLS-2241
                 URL: https://issues.jboss.org/browse/DROOLS-2241
             Project: Drools
          Issue Type: Bug
            Reporter: Mario Fusco
            Assignee: Mario Fusco


Wrong cloning of a pattern having a FromNode as source causes wrong initialization of both node and pattern which in turn prevents sharing of FromNode when possible. 

Even worse when the duplicated FromNode are part of a subnetwork also the RiaNode at the end of the subnetwork is wrongly initialized leading to a NPE like the following:

{node}
java.lang.NullPointerException
	at org.drools.core.reteoo.RiaPathMemory.initDataDriven(RiaPathMemory.java:35)
	at org.drools.core.reteoo.PathMemory.<init>(PathMemory.java:50)
{node}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list