coverity fix (forward null)
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Apr 2012 08:26:32 +0000 (08:26 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Apr 2012 08:26:32 +0000 (08:26 +0000)
PWGJE/AliAnalysisTaskAj.cxx

index 2cd256e..ef91acf 100644 (file)
@@ -835,7 +835,7 @@ void AliAnalysisTaskAj::Terminate(const Option_t *)
 Int_t  AliAnalysisTaskAj::GetListOfTracks(TList *list){
 
     Int_t iCount = 0;
+    if(!fAOD)return iCount;
     
     for(int it = 0;it < fAOD->GetNumberOfTracks();++it){
       AliAODTrack *tr = fAOD->GetTrack(it);