X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FAlgorithm.hxx;h=3c33e4e3ca90019e7ac77b58c1c8ae9b541948cc;hb=d93ab4fea6dbc791560451ecdc4bf7555d8cf11d;hp=6e4eef139929c21ebb5fc22b182576067fde4b04;hpb=40fb0405cfef444001429f8ba49c407ce9168a94;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/Algorithm.hxx b/lib/fpa/Image/Algorithm.hxx index 6e4eef1..3c33e4e 100644 --- a/lib/fpa/Image/Algorithm.hxx +++ b/lib/fpa/Image/Algorithm.hxx @@ -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( ) ); } // -------------------------------------------------------------------------