Coverity
authorvulpescu <vulpescu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Feb 2011 15:21:55 +0000 (15:21 +0000)
committervulpescu <vulpescu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Feb 2011 15:21:55 +0000 (15:21 +0000)
EVE/EveDet/AliEveMUONTrack.cxx

index b36b48e..7c8689e 100644 (file)
@@ -778,14 +778,11 @@ void AliEveMUONTrack::Propagate(Float_t *xr, Float_t *yr, Float_t *zr, Int_t i1,
 
   trackParamAtCluster = fTrack->GetTrackParamAtCluster();
 
-  if (IsMUONTrack() || IsESDTrack()) {
-    trackParam = (AliMUONTrackParam*)trackParamAtCluster->At(i1);
-    charge = (Int_t)trackParam->GetCharge();
-  }
-  if (IsRefTrack()) {
-    trackParam = fTrack->GetTrackParamAtVertex();
+  if (IsMUONTrack() || IsESDTrack() || IsRefTrack()) {
     charge = (Int_t)trackParam->GetCharge();
     trackParam = (AliMUONTrackParam*)trackParamAtCluster->At(i1);
+  } else {
+    return;
   }
 
   vect[0] = xr[i1];