Salome HOME
A bug is fixed: CORBA::Object was compared to NULL instead of CORBA::is_nil().
authorasv <asv@opencascade.com>
Fri, 21 Jan 2005 06:08:46 +0000 (06:08 +0000)
committerasv <asv@opencascade.com>
Fri, 21 Jan 2005 06:08:46 +0000 (06:08 +0000)
src/SUPERVGUI/SUPERVGUI_CanvasNode.cxx

index bd8602ae2a86de7478326e827b94277c233534a2..daf2074875978e9d080d9c78a09459a992f81b82 100644 (file)
@@ -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());
 }