From: san Date: Mon, 18 Jul 2005 11:44:14 +0000 (+0000) Subject: Fix for bug PAL9505 : CRASH after trying to add output port of "string" type. X-Git-Tag: T2_2_5a~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1dc81dbf7d7326eac7bc03a35489866bc9754479;p=modules%2Fsuperv.git Fix for bug PAL9505 : CRASH after trying to add output port of "string" type. --- diff --git a/src/GraphBase/DataFlowBase_DataPort.cxx b/src/GraphBase/DataFlowBase_DataPort.cxx index 1f6d837..0496832 100644 --- a/src/GraphBase/DataFlowBase_DataPort.cxx +++ b/src/GraphBase/DataFlowBase_DataPort.cxx @@ -65,7 +65,7 @@ void GraphBase::DataPort::InitialValues(CORBA::Any aValue ) { } else if ( !strcmp( Type , "string" ) ) { cdebug << "string" << endl ; - InitialValue <<= (char *) NULL ; + InitialValue <<= (char *) "" ; } else if ( !strcmp( Type , "boolean" ) ) { cdebug << "boolean" << endl ;