Coverity fix (forward Null)
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Apr 2012 06:02:43 +0000 (06:02 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Apr 2012 06:02:43 +0000 (06:02 +0000)
PWGJE/UserTasks/AliAnalysisTaskCheckSingleTrackJetRejection.cxx

index 49420d2..e920733 100755 (executable)
@@ -402,6 +402,7 @@ void AliAnalysisTaskCheckSingleTrackJetRejection::UserExec(Option_t *)
                                                                                                                                                                for(int njetAOD=0;njetAOD<Jet_n[1];njetAOD++){
                                                                                                                                                                                                fJetBranch   = "clustersAOD_ANTIKT04_B0_Filter00256_Cut00150_Skip00";
                                                                                                                                                                                                jets = dynamic_cast <TClonesArray*> (fAODIn->FindListObject(fJetBranch.Data()));
                                                                                                                                                                for(int njetAOD=0;njetAOD<Jet_n[1];njetAOD++){
                                                                                                                                                                                                fJetBranch   = "clustersAOD_ANTIKT04_B0_Filter00256_Cut00150_Skip00";
                                                                                                                                                                                                jets = dynamic_cast <TClonesArray*> (fAODIn->FindListObject(fJetBranch.Data()));
+                                                                                                                                                                                               if(jets)continue;
                                                                                                                                                                                                jetsAOD = (AliAODJet*) (jets->At(njetAOD));
                                                                                                                                                                                                TRefArray *reftracks = jetsAOD->GetRefTracks();
                                                                                                                                                                                                int ntracks=reftracks->GetEntriesFast();
                                                                                                                                                                                                jetsAOD = (AliAODJet*) (jets->At(njetAOD));
                                                                                                                                                                                                TRefArray *reftracks = jetsAOD->GetRefTracks();
                                                                                                                                                                                                int ntracks=reftracks->GetEntriesFast();