}
if(iSM>9) rowborder /= 2; // half size in phi
- if(!ampmatrixes){
+ if(!ampmatrixes || !ampmatrix){
AliError("Could not recover the matrix with the amplitudes");
return kFALSE;
}
TMatrixD * amptrus = dynamic_cast<TMatrixD *>(ampmatrix->At(itru)) ;
TMatrixD * timeRtrus = dynamic_cast<TMatrixD *>(timeRmatrix->At(itru)) ;
- if(!amptrus || timeRtrus){
+ if(!amptrus || !timeRtrus){
AliError("Could not recover the TRU matrix with amplitudes or times");
}
else{