Skip to content

Commit

Permalink
Additional protection
Browse files Browse the repository at this point in the history
  • Loading branch information
hristov authored and hristov committed Feb 10, 2017
1 parent aa17789 commit 6e75ce5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions MUON/MUONbase/AliMUONTriggerElectronics.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,13 @@ void AliMUONTriggerElectronics::LoadMasks(AliMUONCalibrationData* calibData)
if (cardNumber) // skip empty slots
{
AliMUONVCalibParam* localBoardMasks = calibData->LocalTriggerBoardMasks(cardNumber);
for ( Int_t i = 0; i < localBoardMasks->Size(); ++i )
{
UShort_t lmask = static_cast<UShort_t>(localBoardMasks->ValueAsInt(i) & 0xFFFF);
b->Mask(i,lmask);
}
if (localBoardMasks) {
for ( Int_t i = 0; i < localBoardMasks->Size(); ++i )
{
UShort_t lmask = static_cast<UShort_t>(localBoardMasks->ValueAsInt(i) & 0xFFFF);
b->Mask(i,lmask);
}
}
}
}
++irb;
Expand Down

0 comments on commit 6e75ce5

Please sign in to comment.