coverity fix FORWARD NULL
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Apr 2012 05:48:12 +0000 (05:48 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Apr 2012 05:48:12 +0000 (05:48 +0000)
PWGJE/UserTasks/AliAnalysisTaskCheckSingleTrackJetRejection.cxx

index 2f0e71a..49420d2 100755 (executable)
@@ -341,6 +341,7 @@ void AliAnalysisTaskCheckSingleTrackJetRejection::UserExec(Option_t *)
                                                                if(algorithm==1)fJetBranch   = Branchname_rec.Data();
 
                                                                TClonesArray* jets = dynamic_cast <TClonesArray*> (fAODIn->FindListObject(fJetBranch.Data()));
                                                                if(algorithm==1)fJetBranch   = Branchname_rec.Data();
 
                                                                TClonesArray* jets = dynamic_cast <TClonesArray*> (fAODIn->FindListObject(fJetBranch.Data()));
+                                                               if(!jets)continue;
                                                                Int_t nj = jets->GetEntriesFast();
                                                                if (fDebug) printf("There are %5d jets in the event \n", nj);
 
                                                                Int_t nj = jets->GetEntriesFast();
                                                                if (fDebug) printf("There are %5d jets in the event \n", nj);