Commit a73aaf55 authored by Dominik Arominski's avatar Dominik Arominski
Browse files

Added a guard against maskWksp being a nullptr

parent 08940e72
......@@ -1058,8 +1058,7 @@ void InstrumentActor::setDataIntegrationRange(const double &xmin,
// Ignore monitors if they are masked on the view
if (spectrumDefinition.size() == 1 &&
(std::find(monitorIndices.begin(), monitorIndices.end(), i) !=
monitorIndices.end() ||
maskWksp->isMasked(static_cast<int>(i))))
monitorIndices.end() || (maskWksp && maskWksp->isMasked(static_cast<int>(i)))))
continue;
auto sum = m_specIntegrs[i];
......
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