]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix for bug #56473: Segmentation fault in AliESDRun::Print (Matthias)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Oct 2009 20:45:48 +0000 (20:45 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Oct 2009 20:45:48 +0000 (20:45 +0000)
STEER/AliESDRun.cxx

index 3df26f4a0ee4b10df5c9ad6f7d8ac65986b1ad44..1225428b108b0839c7010c027a9bb0346addf6a6 100644 (file)
@@ -166,7 +166,7 @@ void AliESDRun::Print(const Option_t *) const
   printf("List of active trigger classes: ");
   for(Int_t i = 0; i < kNTriggerClasses; i++) {
     TNamed *str = (TNamed *)((fTriggerClasses).At(i));
-    printf("%s ",str->GetName());
+    if (str) printf("%s ",str->GetName());
   }
   printf("\n");
 }