Page MenuHomePhabricator

VolumeDataVtkMapper3D accessed properties without checking their existence
Closed, ResolvedPublic

Description

mitk/Core/Code/Rendering/mitkVolumeDataVtkMapper3D.cpp line 267 reads

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

In cases where there is no "volumerendering configuration" property, this code crashes.

Proposed solution: simply check if this property exists.

Event Timeline

[SVN revision 21566]
FIX (#2638): fixed as in the proposed solution