Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-4971

DecisionTableResultMapper not null safe

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.4.0, 7.4.0-alpha3
    • None
    • engine
    • None

      If the called decision definition returns an empty array and the defined mapDecisionResult is set to singleEntry or singleResult a NullPointerException is thrown.

      AT:

      • instead of a NullPointerException a proper exception is thrown

        This is the controller panel for Smart Panels app

            [CAM-4971] DecisionTableResultMapper not null safe

            The description in CAM-4725 should be updated with the new behavior. I will do this during CAM-4920.

            Sebastian Menski added a comment - The description in CAM-4725 should be updated with the new behavior. I will do this during CAM-4920 .

            I decided to not throw an exception. Instead now null is returned which allows the user to test for it afterwards. Not sure about this decision.

            Sebastian Menski added a comment - I decided to not throw an exception. Instead now null is returned which allows the user to test for it afterwards. Not sure about this decision.

              roman.smirnov Roman Smirnov
              roman.smirnov Roman Smirnov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: