From: asv Date: Fri, 21 Jan 2005 06:08:46 +0000 (+0000) Subject: A bug is fixed: CORBA::Object was compared to NULL instead of CORBA::is_nil(). X-Git-Tag: V2_2_0b2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d852b53cada42355eb663b6cac80c467b589a1b;p=modules%2Fsuperv.git A bug is fixed: CORBA::Object was compared to NULL instead of CORBA::is_nil(). --- diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasNode.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasNode.cxx index bd8602a..daf2074 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasNode.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasNode.cxx @@ -590,7 +590,7 @@ void SUPERVGUI_CanvasNode::addInputPort() { myMain->Editing(); // PAL6170: GUI->Engine: setting "Editing" flag SUPERV_Port aPort = createInPort(); - if (aPort == NULL) return; + if (aPort == NULL || CORBA::is_nil( aPort ) ) return; createPort(aPort.in()); } @@ -600,7 +600,7 @@ void SUPERVGUI_CanvasNode::addOutputPort() { myMain->Editing(); // PAL6170: GUI->Engine: setting "Editing" flag SUPERV_Port aPort = createOutPort(); - if (aPort == NULL) return; + if (aPort == NULL || CORBA::is_nil( aPort ) ) return; createPort(aPort.in()); }