Coverity fix 10664
authormfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Jan 2011 15:46:59 +0000 (15:46 +0000)
committermfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Jan 2011 15:46:59 +0000 (15:46 +0000)
ANALYSIS/AliCollisionNormalizationTask.cxx

index 5e1f6d55136ae43e0c56357c7aa39b48aeb57809..bab6897bf2a8adced0c48d51e7e7bd1f3b55ed9b 100644 (file)
@@ -107,6 +107,9 @@ void AliCollisionNormalizationTask::UserExec(Option_t*)
 
   // Get the ESD
   AliESDEvent * aESD = dynamic_cast<AliESDEvent*>(fInputEvent);
+  if(!aESD) {
+    AliFatal("Cannot get ESD");
+  }
   if (strcmp(aESD->ClassName(),"AliESDEvent")) {
     AliFatal("Not processing ESDs");
   }