fix covertiy
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Apr 2012 14:08:02 +0000 (14:08 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Apr 2012 14:08:02 +0000 (14:08 +0000)
PWGJE/AliAnalysisTaskJetCore.cxx

index 582acfe..44f3420 100644 (file)
@@ -956,9 +956,12 @@ Int_t  AliAnalysisTaskJetCore::GetListOfTracks(TList *list){
 
      Int_t iCount = 0;
      AliAODEvent *aod = 0;
-     if(!fESD)aod = fAODIn;
+     if(!fESD){
+       if(!fAODIn)return iCount;
+       aod = fAODIn;      
+     }
      else aod = fAODOut;   
-    
+
     for(int it = 0;it < aod->GetNumberOfTracks();++it){
       AliAODTrack *tr = aod->GetTrack(it);
       if((fFilterMask>0)&&!(tr->TestFilterBit(fFilterMask)))continue;