Coverity stuff once more ...
[u/mrichter/AliRoot.git] / TRD / AliTRDCalibTask.cxx
index 79660af..aadec5e 100644 (file)
@@ -934,7 +934,9 @@ void AliTRDCalibTask::Plot()
          first += 1;
        }
        else {
-         histolinearfitsum ->Add(linearfit->GetLinearFitterHisto(det));
+          if (histolinearfitsum) {
+           histolinearfitsum->Add(linearfit->GetLinearFitterHisto(det));
+         }
        }
       }
     }