]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.cxx
MAC compilation issues solved... Now some tests please
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.cxx
index e2ea0de61e79640917d122c376c24a2eed027b2f..72897d6729a615ca3368a85a62c434297e8063cf 100644 (file)
@@ -154,7 +154,12 @@ Update( )
   {
     bool iv = i->second.IsValid( );
     bool ir = i->second.IsRequired( );
-    if( iv || !ir )
+    if( !iv && ir )
+      r =
+        "ProcessObject: Required input \"" +
+        i->first + "@" + this->GetClassName( ) +
+        "\" is not valid (=NULL).";
+    if( iv && r == "" )
     {
       Self* src = dynamic_cast< Self* >( i->second->GetSource( ) );
       if( src != NULL )
@@ -163,12 +168,8 @@ Update( )
         r = src->Update( );
 
       } // fi
-    }
-    else
-      r =
-        "ProcessObject: Required input \"" +
-        i->first + "@" + this->GetClassName( ) +
-        "\" is not valid (=NULL).";
+
+    } // fi
 
   } // rof