Coverty
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Mar 2011 09:50:26 +0000 (09:50 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Mar 2011 09:50:26 +0000 (09:50 +0000)
PWG2/EVCHAR/AliAnalysisTaskCentrality.cxx

index 7827ace..3bacf99 100644 (file)
@@ -424,7 +424,7 @@ void AliAnalysisTaskCentrality::UserExec(Option_t */*option*/)
 
     AliVEvent* event = InputEvent();
     AliESDEvent* esd = dynamic_cast<AliESDEvent*>(event);
-    
+    if (!esd) return;
       fNev++;
 
       fNTracks    = event->GetNumberOfTracks();