From: hristov Date: Tue, 6 Oct 2009 20:45:48 +0000 (+0000) Subject: Fix for bug #56473: Segmentation fault in AliESDRun::Print (Matthias) X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=384e7a60b984efe0d246cb14978133bd21f77d3c;p=u%2Fmrichter%2FAliRoot.git Fix for bug #56473: Segmentation fault in AliESDRun::Print (Matthias) --- diff --git a/STEER/AliESDRun.cxx b/STEER/AliESDRun.cxx index 3df26f4a0ee..1225428b108 100644 --- a/STEER/AliESDRun.cxx +++ b/STEER/AliESDRun.cxx @@ -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"); }