NPE terminating both multi-instance body and child elements during PI modification #10537
Labels
area/ux
Marks an issue as related to improving the user experience
hacktoberfest
Marks an issue as a candidate to be a Hacktoberfest contribution
kind/bug
Categorizes an issue or PR as a bug
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
severity/mid
Marks a bug as having a noticeable impact but with a known workaround
version:8.1.1
Marks an issue as being completely or in parts released in 8.1.1
version:8.2.0-alpha1
Marks an issue as being completely or in parts released in 8.2.0-alpha1
version:8.2.0
Marks an issue as being completely or in parts released in 8.2.0
Describe the bug
Sending a modification request in which we terminate both the multi-instance body as well as any of the elements inside of this multi-instance body will result in a NPE.
Terminating the multi-instance body, as well as the subprocess will trigger the NPE.
To Reproduce
Send a terminate request for a multi-instance and any of the element instances within.
Unit test
Expected behavior
No NPE should be thrown. If we reach a terminate instruction that doesn't have an existing element instance anymore we should ignore it. We already verified the this instance existed at the start of the command, so it's safe to assume another terminate instruction has already terminated the instance.
Log/Stacktrace
Full Stacktrace
Environment:
The text was updated successfully, but these errors were encountered: