Fix Coverity 10652-3
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Feb 2011 13:02:20 +0000 (13:02 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Feb 2011 13:02:20 +0000 (13:02 +0000)
PWG2/AOD/AliAnalysisTaskPWG2AODUpdate.cxx

index bfc1735..ce5c978 100644 (file)
@@ -89,6 +89,8 @@ void AliAnalysisTaskPWG2AODUpdate::UserExec(Option_t */*option*/)
   fAOD = AODEvent();
   if (!fAOD) { printf ("No output AOD !!! Not adding PWG2 information\n"); }
  
+  if ((!fESD) || (!fAOD)) return;
+
   Double_t pos[3];
   Double_t p[3];
   Double_t tpcentrancepoint[3];