Fix for coverity 24987
authorzampolli <Chiara.Zampolli@cern.ch>
Mon, 12 Jan 2015 13:21:47 +0000 (14:21 +0100)
committerzampolli <Chiara.Zampolli@cern.ch>
Mon, 12 Jan 2015 13:21:47 +0000 (14:21 +0100)
HLT/global/physics/AliHLTAnaManagerComponent.cxx

index 639bea3..448e85f 100644 (file)
@@ -230,7 +230,8 @@ Int_t AliHLTAnaManagerComponent::DoEvent(const AliHLTComponentEventData& evtData
       continue;
     }
   }
-  printf("----> ESDFriend %p has %d tracks: \n", esdFriend, esdFriend->GetNumberOfTracks());
+  if (esdFriend) printf("----> ESDFriend %p has %d tracks: \n", esdFriend, esdFriend->GetNumberOfTracks());
+  else printf("----> No ESDFriend found\n");
 
   fAnalysisManager->InitInputData(esdEvent, esdFriend);
   //  fInputHandler->BeginEvent(0);