From 9d852b53cada42355eb663b6cac80c467b589a1b Mon Sep 17 00:00:00 2001 From: asv Date: Fri, 21 Jan 2005 06:08:46 +0000 Subject: [PATCH] A bug is fixed: CORBA::Object was compared to NULL instead of CORBA::is_nil(). --- src/SUPERVGUI/SUPERVGUI_CanvasNode.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } -- 2.39.2