Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2241

Wrong pattern cloning causes missing FromNode sharing and eventually a NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • 2018 Week 01-02
    • NEW
    • NEW

      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}

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: