Skip to content

Commit

Permalink
Refs #8760. A quick fix for the failing unit test
Browse files Browse the repository at this point in the history
This should be fixed properly in separate ticket.
  • Loading branch information
arturbekasov committed Jun 12, 2014
1 parent e268e28 commit 1088f96
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -94,6 +94,11 @@ Parameter_sptr PoldiSourceSpectrum::getSpectrumParameter(IComponent_const_sptr s
*/
void PoldiSourceSpectrum::setSpectrum(Parameter_sptr spectrumParameter)
{
if (!spectrumParameter)
{
throw std::runtime_error("Spectrum parameter pointer is null");
}

try {
const FitParameter& spectrum = spectrumParameter->value<FitParameter>();

Expand Down

0 comments on commit 1088f96

Please sign in to comment.