Locked History Attachments

ChangeRequests/2638

Summary of bug description

Application can crash because mitk/Core/Code/Rendering/mitkVolumeDataVtkMapper3D.cpp line 267 reads

int renderingValue = dynamic_cast<mitk::VtkVolumeRenderingProperty*>(GetDataTreeNode()->GetProperty("volumerendering configuration",renderer))->GetValueAsId();

Cause of the bug

This code assumes that there always is a "volumerendering configuration" property.

Proposed solution

Check existence of property before using the pointer

Affected classes

  • mitk/Core/Code/Rendering/mitkVolumeDataVtkMapper3D.cpp

How will the bugfix get tested?

Save a scene with this property using the SceneSerialization module, then editing the property list file, removing the above mentioned property, then loading the scene. Application must not crash then