else
{
SUIT_ViewManager* aViewManager = anApp->getViewManager( SVTK_Viewer::Type(), theCreate );
- return dynamic_cast<SVTK_ViewWindow*>( aViewManager->getActiveView() );
+ return aViewManager ? dynamic_cast<SVTK_ViewWindow*>( aViewManager->getActiveView() ) : 0;
}
}
return NULL;