Additional protection (Christian)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Feb 2008 14:03:36 +0000 (14:03 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Feb 2008 14:03:36 +0000 (14:03 +0000)
FMD/AliFMDRawReader.cxx

index 227af2b..4fd9ba7 100644 (file)
@@ -129,6 +129,7 @@ AliFMDRawReader::ReadAdcs(TClonesArray* array)
   Bool_t isGood = kTRUE;
   while (isGood) {
     isGood = input.ReadChannel(ddl, hwaddr, last, data);
+    if (!isGood) break;
 
     AliFMDDebug(5, ("Read channel 0x%x of size %d", hwaddr, last));
     UShort_t det, sec, str;