Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1498

BackgroundCommandExecution does not handle exceptions correctly.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.13.0
    • Fix Version/s: 1.13.1
    • Component/s: Core
    • Labels:
      None

      Description

      Seen two separate issues.

      First, when there was a mismatch in arguments to parameters (see ISIS-1497), this resulted in an NPE in this line of the catch block:

      Exception unused = backgroundInteraction.getPriorExecution().getThrew();
      

      specifically, getPriorExecution() returned null.

      Then, when I worked around that issue so that the action could be invoked but when executed threw an exception, resulted in an NPE in this line of the catch block:

      backgroundInteraction.getCurrentExecution().setThrew(e);
      

      Here, getCurrentExecution() returned null.

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: