Fixes in the memory managment, additional protections
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDRawStream.h
index de805b6f8623d9e5801d4e49dbf966daa9ad54c9..d95a3fae05b78a78e3c6bfa80c518bc494fc0fb0 100644 (file)
@@ -368,8 +368,8 @@ Int_t AliHMPIDRawStream::GetErrors(Int_t ddl,Int_t eType)
   
   if(eType < 1 || eType> kSumErr-1 ) return -999;
   else if( ddl < 0 || ddl > kNDDL-1 )  return -999;
-  else 
-    return fNumOfErr[ddl][eType];
+  else if (!fNumOfErr) return -999;
+  else return fNumOfErr[ddl][eType];
 } //GetErrors()     
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++