Skip to content

Commit

Permalink
Refs #4814. Fixed potential bug when instrument is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Feb 21, 2012
1 parent fc17b2b commit 00066c1
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,17 @@ namespace Mantid
interruption_point();
}

if (instrument->isMonitor(i))
if (checkForMask)
{
continue; // do include or exclude from mask
}
if (instrument->isMonitor(i))
{
continue; // do include or exclude from mask
}

if (instrument->isDetectorMasked(i))
{
keepData = false;
if (instrument->isDetectorMasked(i))
{
keepData = false;
}
}

const double & yValue = countsWS->readY(i)[0];
Expand Down

0 comments on commit 00066c1

Please sign in to comment.