]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Algorithm.hxx
...
[FrontAlgorithms.git] / lib / fpa / Image / Algorithm.hxx
index 6e4eef139929c21ebb5fc22b182576067fde4b04..3c33e4e3ca90019e7ac77b58c1c8ae9b541948cc 100644 (file)
@@ -51,9 +51,8 @@ _BeforeGenerateData( )
     dynamic_cast< TVertexFunction* >(
       this->GetVertexFunction( )
       );
-  if( vertexFunc == NULL )
-    itkExceptionMacro( << "VertexFunction not well defined." );
-  vertexFunc->SetImage( this->GetInput( ) );
+  if( vertexFunc != NULL )
+    vertexFunc->SetImage( this->GetInput( ) );
 }
 
 // -------------------------------------------------------------------------