Salome HOME
Fix for bug IPAL10078 : CRASH after deletion of inline Computation node.
authormkr <mkr@opencascade.com>
Mon, 26 Sep 2005 08:58:21 +0000 (08:58 +0000)
committermkr <mkr@opencascade.com>
Mon, 26 Sep 2005 08:58:21 +0000 (08:58 +0000)
src/GraphBase/DataFlowBase_Graph.cxx

index 62745bb3055ce550069f2845c9442f782fbc963c..99012c4f965605de8546a88ba7190277618edc28 100644 (file)
@@ -724,7 +724,7 @@ bool GraphBase::Graph::RemoveNode( const char* aNodeName ) {
     }
 //PAL8177-PAL8509
 //JR 24.03.2005 : Debug : CoupledNode field of GOTONodes was not erased
-    if ( aNode->IsInLineNode() ) {
+    if ( aNode->IsInLineNode() && aNode->GetNodeInPortsSize() ) { //mkr : IPAL10078
       GraphBase::OutPort * anOutPort = aNode->GetNodeInGate()->GetOutPort() ;
       if ( anOutPort ) {
         GraphBase::ComputingNode * aLinkedNode ;