HomePhabricator
Diffusion MITK bd73eba1caa9

Add safeguard to avoid MxN crashes when removing node

Description

Add safeguard to avoid MxN crashes when removing node

Summary: The setGeometry() of the RenderWindowUtilityWidget gets called when a node is removed from the DataManager. It takes care of inverting the axis when necessary, but doesn't check if the geometry it's working with actually exists. This can cause crashes when removing the last visible node (see T30226). Adding a check for nullptr solves T30226.

Test Plan: Open the MxN view, load any data and remove the last visible node (either make all the other nodes invisible, or delete all but one first). Expected: no crash

Reviewers: O3 MITK Reviewer Group II, kislinsk

Reviewed By: O3 MITK Reviewer Group II, kislinsk

Differential Revision: https://phabricator.mitk.org/D870

Details

Provenance
s434nAuthored on Oct 12 2023, 5:31 PM
s434nPushed on Oct 18 2023, 3:44 PM
Reviewer
O3: MITK Reviewer Group II
Differential Revision
Restricted Differential Revision
Parents
rMITKc5478047dbac: add safeguard to setGeometry of RenderWindowUtilityWidget
rMITK7b4dd3a59fb9: SAM tool user documentation
Branches
Unknown
Tags
Unknown