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.