Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Feb 2008 17:05:36 +0000 (17:05 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Feb 2008 17:05:36 +0000 (17:05 +0000)
STEER/AliReconstruction.cxx

index ff7df71..2435e15 100644 (file)
@@ -965,8 +965,10 @@ Bool_t AliReconstruction::Run(const char* input, Bool_t IsOnline)
 
       AliExternalTrackParam *tpcTrack =
            (AliExternalTrackParam *)track->GetTPCInnerParam();
-      ok = AliTracker::
-           PropagateTrackTo(tpcTrack,kRadius,track->GetMass(),kMaxStep,kTRUE);
+      ok = kFALSE;
+      if (tpcTrack)
+       ok = AliTracker::
+         PropagateTrackTo(tpcTrack,kRadius,track->GetMass(),kMaxStep,kTRUE);
       if (ok) {
        Int_t n=trkArray.GetEntriesFast();
         selectedIdx[n]=track->GetID();