Fix for coverity
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Apr 2013 08:18:30 +0000 (08:18 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Apr 2013 08:18:30 +0000 (08:18 +0000)
ZDC/AliZDCDigitizer.cxx

index 6b5004f..61acc61 100644 (file)
@@ -315,7 +315,7 @@ void AliZDCDigitizer::Digitize(Option_t* /*option*/)
         printf(" No HIJING header found in list of headers from generator\n");
     }
     
-    if(fSpectators2Track==kTRUE){
+    if(hijingHeader && fSpectators2Track==kTRUE){
       impPar = hijingHeader->ImpactParameter();
       specNProj = hijingHeader->ProjSpectatorsn();
       specPProj = hijingHeader->ProjSpectatorsp();