From: asl Date: Fri, 11 Nov 2005 09:43:27 +0000 (+0000) Subject: PAL10480 - crash if popup in VISU is called with closed VTKViewer X-Git-Tag: V3_1_0a3~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abf961d0c94e0f474a7b029f9d3ac40d0ff06d8d;p=modules%2Fvisu.git PAL10480 - crash if popup in VISU is called with closed VTKViewer --- diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index 9e45ffb9..83eab744 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -658,7 +658,7 @@ namespace VISU else { SUIT_ViewManager* aViewManager = anApp->getViewManager( SVTK_Viewer::Type(), theCreate ); - return dynamic_cast( aViewManager->getActiveView() ); + return aViewManager ? dynamic_cast( aViewManager->getActiveView() ) : 0; } } return NULL;