fix for coverity 17297
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 26 Jun 2011 11:07:58 +0000 (11:07 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 26 Jun 2011 11:07:58 +0000 (11:07 +0000)
PWG4/JetTasks/AliPWG4HighPtTrackQA.cxx

index 78cd903..ca1cfbd 100644 (file)
@@ -896,6 +896,10 @@ void AliPWG4HighPtTrackQA::DoAnalysisESD() {
          if(fTrackType==5) {
            //use TPConly constrained track
            track = AliESDtrackCuts::GetTPCOnlyTrack(fESD,esdtrack->GetID());
+           if(!track) {
+             fh1NTracksReject->Fill("noTPConly",1);
+             continue;
+           }
            AliExternalTrackParam exParam;
            Bool_t relate = track->RelateToVertexTPC(fVtx,fESD->GetMagneticField(),kVeryBig,&exParam);
            if( !relate ) {