Fix for #85947: Segfault when reading ESD friends from LHC10e
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Aug 2011 12:02:30 +0000 (12:02 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Aug 2011 12:02:30 +0000 (12:02 +0000)
STEER/ESD/AliESDfriendTrack.cxx

index b43ebaa..5c7c934 100644 (file)
@@ -102,7 +102,7 @@ fTRDIn(0)
      Int_t no=t.fCalibContainer->GetEntriesFast();
      for (i=0; i<no; i++) {
        TObject *o=t.fCalibContainer->At(i);
-       fCalibContainer->AddLast(o->Clone());
+       if (o) fCalibContainer->AddLast(o->Clone());
      }  
   }