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
Steps to reproduce:
--> Workbench crashes
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.