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

NullPointerException in RightTuple.unlinkFromRightParent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.1.0.Final
    • 6.0.0.Final, 6.0.1.Final, 6.1.0.Beta4
    • None
    • Hide

      I created a small example that demonstrates the bug.
      It consists of a JUnit class with 2 test cases, both of which execute the same
      rule set with 2 different facts. One test case (testMeSuccess()) works, the
      other on (testMeFailure()) crashes with an NPE.

      Show
      I created a small example that demonstrates the bug. It consists of a JUnit class with 2 test cases, both of which execute the same rule set with 2 different facts. One test case (testMeSuccess()) works, the other on (testMeFailure()) crashes with an NPE.

    Description

      Upon porting Drools-related code in our product from 5.5.0 to 6.0.1, I found that one unit test accompanying a rule set failed with an NullPointerException.
      After quite a while of debugging in the innards of the rule engine I am quite sure that I didn't make a mistake in porting to Drools 6.0.1 but this is rather a
      bug in the rule engine. Seems to me like there's something going wrong while cleaning up the working memory after firing a rule.

      Attachments

        1. Testcase.7z
          4 kB
          Thomas Mogwitz

        Activity

          People

            mfusco@redhat.com Mario Fusco
            tmogwitz_jira Thomas Mogwitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: