Commit 583033f1 authored by Julien Malik's avatar Julien Malik

BUG: fix bug #823

parent 8efea4ec
......@@ -76,6 +76,10 @@ public:
/** Get the value */
ScalarType GetValue() const
{
if (!HasValue())
{
itkGenericExceptionMacro(<< "Parameter " << this->GetKey() << " has no value yet.");
}
return boost::any_cast<ScalarType>(m_Value);
}
......
Markdown is supported
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