Coverity fix.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Feb 2011 11:44:37 +0000 (11:44 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Feb 2011 11:44:37 +0000 (11:44 +0000)
STEER/AliTrackFitterRieman.cxx

index f08a2fe..1a5265e 100644 (file)
@@ -199,7 +199,7 @@ Bool_t AliTrackFitterRieman::Fit(const TArrayI *volIds,const TArrayI *volIdsFit,
 
   Reset();
 
-  if (fPoints && AliLog::GetDebugLevel("","AliTrackFitterRieman")>1&& gRandom->Rndm()<debugRatio){
+  if (fPoints && volIdsFit && AliLog::GetDebugLevel("","AliTrackFitterRieman")>1&& gRandom->Rndm()<debugRatio){
     Int_t nVol    = volIds->GetSize();
     Int_t nVolFit = volIdsFit->GetSize();
     Int_t volId  = volIds->At(0);