From Constantin.
authorMateusz Ploskon <mploskon@lbl.gov>
Tue, 10 Dec 2013 16:31:06 +0000 (17:31 +0100)
committerMateusz Ploskon <mploskon@lbl.gov>
Tue, 10 Dec 2013 16:31:06 +0000 (17:31 +0100)
EMCAL/AliEMCALRecoUtils.cxx

index 76cd548cb0c7553090c6406108f6f55d69b49776..a8e4d710d9a3881a0e9a8e09698efaf2e3dbb7dd 100644 (file)
@@ -2134,7 +2134,10 @@ Bool_t AliEMCALRecoUtils::ExtrapolateTrackToEMCalSurface(AliVTrack *track,
 
   AliExternalTrackParam *trackParam = 0;
   if (esdt) {
-    trackParam = new AliExternalTrackParam(*esdt->GetInnerParam());
+    AliExternalTrackParam *in = esdt->GetInnerParam();
+    if (!in)
+      return kFALSE;
+    trackParam = new AliExternalTrackParam(*in);
   } else {
     Double_t xyz[3] = {0}, pxpypz[3] = {0}, cv[21] = {0};
     aodt->PxPyPz(pxpypz);