Page MenuHomePhabricator

Diffusion App crashes if helper node selected
Closed, ResolvedPublic

Description

All views which parse a NodeSelection (-List) do not check for (node->GetData() == NULL). This can occur when a helper node, i.e. node without data is selected. This leads currently to a complete crash of the application (SIGSEV) since the most methods are accessing further members of the mitk::BaseData* returned by the GetData() method.

Related Objects

Event Timeline

[093d2f]: Merge branch 'bug-11713-CrashAfterSelectingHelperNodes'

Merged commits:

2012-04-18 16:09:28 Jan Hering [bdbb37]
Making all calls to node->GetData() save

  • added check for nodes without data (i.e. returning 0x0 on GetData() )
  • using const BaseData* whenever applicable