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}
- clones
-
DROOLS-2241 Wrong pattern cloning causes missing FromNode sharing and eventually a NPE
-
- Resolved
-