coverity
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 28 May 2011 10:37:01 +0000 (10:37 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 28 May 2011 10:37:01 +0000 (10:37 +0000)
PWG1/ZDC/AliAnalysisTaskZDC.cxx

index c62e6a1..8616968 100644 (file)
@@ -240,6 +240,7 @@ void AliAnalysisTaskZDC::UserExec(Option_t */*option*/)
 
       
   AliESDEvent* esd = dynamic_cast<AliESDEvent*> (InputEvent());
+  if(!esd) return;
   // Select PHYSICS events (type=7, for data)
   if(!fIsMCInput && esd->GetEventType()!=7) return;