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

Building a KJAR using Decision Table Templates throws NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 7.18.0.Final, 7.23.0.Final
    • core engine
    • None

    Description

      Steps to building a new KJar by defining Resource objects and adding then using KieFileSystem.write(), if a Decision Table Template resource type is added then we get a null pointer exception when the KieBuilder.buildAll() method is invoked.

      Sample code that demonstrates this error can be found here: https://github.com/carlmes/decision-table-template, specifically the notes in TestDecisionTableBuild.java.

      Red Hat support case: https://access.redhat.com/support/cases/#/case/02397413

      I have created a proposed fix in DecisionTableConfigurationImpl.java, by implementing the missing properties in the fromProperties and toProperties methods. Please see attached updated file that has been tested to fix the issue locally.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              rhn-gps-cames Carl Mes
              Carl Mes, David van Balen, dean goedken (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: