[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 10:07:00 EST 2018
[ https://issues.jboss.org/browse/DROOLS-2241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-2241.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/50625d913cae7ac7aea17232f2ab59ea16d36894
> 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