coverity fix
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 29 Apr 2012 18:04:05 +0000 (18:04 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 29 Apr 2012 18:04:05 +0000 (18:04 +0000)
PWGJE/UserTasks/AliAnalysisTaskJetHadronCorrelation.cxx

index e677395..74325eb 100755 (executable)
@@ -645,6 +645,8 @@ void AliAnalysisTaskJetHadronCorrelation::UserExec(Option_t *)
                                                                                                }
                                                                                                fJetBranch = "tracks";
                                                                                                TClonesArray* tracks = dynamic_cast <TClonesArray*> (fAODIn->FindListObject(fJetBranch.Data()));
+                                                               
+                                                                                               if(!tracks)continue;
                                                                                                Int_t nt = tracks->GetEntriesFast();
                                                                                                AliAODTrack* trackAOD;
                                                                                                Track_n = nt;