Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
34a0fdbb
Commit
34a0fdbb
authored
Sep 20, 2022
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx
View file @
34a0fdbb
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment