Page MenuHomePhabricator

Crash when opening Isosurface plugin
Closed, ResolvedPublic

Description

When user click the Isosurface plugin when there is no images loaded, ExtApp
generates a crash, several lines can be added to avoid this bug:

void QmitkIsoSurface::ImageSelected(const mitk::DataTreeNode* item)
{
// nothing selected (NULL selection)
if( item == NULL || item->GetData() == NULL )

		return;

if( item->GetData()->GetSource() == NULL )
{

		return;

}

m_MitkImage = dynamic_cast<mitk::Image*> (item->GetData());

}

Event Timeline

Daniel, Michael,

you wrote the IsoSurface bundle, can you look into it?

I only moved it during the retreat, Michi ported it. We could use a bundle adoption program again :-)

[SVN revision 19951]
FIX (#2814): Added NULL pointer check in QmitkIsoSurface::ImageSelected()

Merging "applicazion modules" component with "ExtApp plugins"