Coverity fix.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Jan 2011 13:04:06 +0000 (13:04 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Jan 2011 13:04:06 +0000 (13:04 +0000)
PWG4/JetTasks/AliAnalysisTaskJetsTM.cxx

index 22d46ce..cc564cc 100644 (file)
@@ -103,6 +103,7 @@ void AliAnalysisTaskJetsTM::UserExec(Option_t *)
 //
   for (Int_t i = 0; i < nJ; i++) {
       AliAODJet* jet = dynamic_cast<AliAODJet*> (jets->At(i));
+      if (!jet) continue;
       Float_t ptJ  = jet->Pt();
       Float_t etaJ = TMath::Abs(jet->Eta());
       if ((ptJ > 20.) && (ptJ  > ptmax) && etaJ < 0.5) {