fixing SEGV in case of switched of TR
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Mar 2008 09:46:33 +0000 (09:46 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Mar 2008 09:46:33 +0000 (09:46 +0000)
STEER/AliMCEvent.cxx

index fff2549304311e75c12f3f19c97f3e810a8858ed..fe1775601d4024d6a9a45aedc71f1c1408e74270 100644 (file)
@@ -177,7 +177,8 @@ void AliMCEvent::FinishEvent()
     fStack->Reset(0);
     fMCParticles->Delete();
     fMCParticleMap->Clear();
-    fTRBuffer->Delete();
+    if (fTRBuffer)
+      fTRBuffer->Delete();
     fTrackReferences->Delete();
 }