From: mzn Date: Mon, 28 Aug 2006 14:14:06 +0000 (+0000) Subject: Fix for bug IPAL12672("Change Clipping" leads to "Fatal error: Attempt to access... X-Git-Tag: mergefrom_BR_For_OCT_611_04Sep06~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=992d058e50184d6c2be1b7503c86fdca877acf95;p=modules%2Fvisu.git Fix for bug IPAL12672("Change Clipping" leads to "Fatal error: Attempt to access to null object"). --- diff --git a/src/VISUGUI/VisuGUI_ClippingDlg.cxx b/src/VISUGUI/VisuGUI_ClippingDlg.cxx index bff927ae..87195d31 100644 --- a/src/VISUGUI/VisuGUI_ClippingDlg.cxx +++ b/src/VISUGUI/VisuGUI_ClippingDlg.cxx @@ -599,8 +599,11 @@ void VisuGUI_ClippingDlg::onSelectionChanged() if (SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow(myVisuGUI)) { Handle(SALOME_InteractiveObject) anIO; CORBA::Object_var anObject = VISU::GetSelectedObj(myVisuGUI, &anIO); - myIO = anIO; if (CORBA::is_nil(anObject)) return; + + if (!anIO.IsNull()) + myIO = anIO; + PortableServer::ServantBase_var aServant = VISU::GetServant(anObject); if (!aServant.in()) return; @@ -1148,4 +1151,4 @@ void VisuGUI_ClippingDlg::keyPressEvent( QKeyEvent* e ) e->accept(); ClickOnHelp(); } -} \ No newline at end of file +}