Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-269

Wrong pattern cloning causes missing FromNode sharing and eventually a NPE

XMLWordPrintable

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

      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
              Marek Winkler Marek Winkler (Inactive)
              Marek Winkler Marek Winkler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: