From 992d058e50184d6c2be1b7503c86fdca877acf95 Mon Sep 17 00:00:00 2001 From: mzn Date: Mon, 28 Aug 2006 14:14:06 +0000 Subject: [PATCH] Fix for bug IPAL12672("Change Clipping" leads to "Fatal error: Attempt to access to null object"). --- src/VISUGUI/VisuGUI_ClippingDlg.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 +} -- 2.39.2