Commit 34a0fdbb authored by Julien Osman's avatar Julien Osman
Browse files

BUG: Raise an exception when trying to reach info before callig Execute

parent d2d4b68e
Pipeline #11526 passed with stages
in 69 minutes and 18 seconds
......@@ -1703,6 +1703,10 @@ ImageBaseType* Application::GetParameterImageBase(const std::string& key, unsign
}
else if (dynamic_cast<OutputImageParameter*>(param))
{
if (!m_ExecuteDone)
itkExceptionMacro(
"Call Execute() or ExecuteAndWriteOutput() before "
"trying to reach output image information.");
OutputImageParameter* paramDown = dynamic_cast<OutputImageParameter*>(param);
return paramDown->GetValue();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment