Page MenuHomePhabricator

Workbench crashes when inspecting segmentation node in Properties view
Closed, ResolvedPublic

Description

Steps to reproduce:

  • Load image
  • Create segmentation
  • Select segmentation node in Data Manager
  • Open Properties view
  • Close Project (and remove all data objects)
  • Load image
  • Create segmentation
  • Select segmentation node

--> Workbench crashes

Event Timeline

eisenman created this task.
QmitkPropertyItemModel.cpp:185-186
auto propertyMap = m_PropertyList.Lock()->GetMap(); // <- m_PropertyList weak pointer is expired (should already crash here)
auto it = std::find_if(propertyMap->begin(), propertyMap->end(), PropertyEqualTo(property)); // <- crash

Adding a check if the property list isn't expired... that's consistent to all other locations in QmitkPropertyItemModel where the property list is used.