fixing SEGV in case of switched of TR
[u/mrichter/AliRoot.git] / 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();
 }