From abf961d0c94e0f474a7b029f9d3ac40d0ff06d8d Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 11 Nov 2005 09:43:27 +0000 Subject: [PATCH] PAL10480 - crash if popup in VISU is called with closed VTKViewer --- src/VISUGUI/VisuGUI_Tools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2