Skip to content
Snippets Groups Projects
Commit 90b78bd3 authored by Federico Montesino Pouzols's avatar Federico Montesino Pouzols
Browse files

check negative index, 1301217 , re #13951

parent 6053d847
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,10 @@ boost::shared_ptr<Workspace> ISISHistoDataListener::extractData() {
getFloatArray("RRPB", floatBuffer, 32);
const double protonCharge = floatBuffer[8];
if (m_timeRegime < 0)
throw std::runtime_error("The value of the time regime variable is "
"negative. This is an Internal inconsistency.");
// find out the number of histograms in the output workspace
const size_t numberOfHistograms =
m_specList.empty() ? m_numberOfSpectra[m_timeRegime] : m_specList.size();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment