Coverity fixes (A. Shabetai)
[u/mrichter/AliRoot.git] / JETAN / DEV / AliJetFillCalTrkTrack.cxx
index 9f11c7676216dcacc034e7ca973a0697c504884d..c6756aefa761d89bb8f9c35960a2dfe7d9f274f6 100644 (file)
@@ -143,6 +143,7 @@ void AliJetFillCalTrkTrack::Exec(Option_t* const /*option*/)
         if((fVEvt->InheritsFrom("AliAODEvent"))){
           // AOD case ....
           AliAODTrack *trAOD = dynamic_cast<AliAODTrack*> (tr);
+          if(!trAOD) continue;
                  Bool_t bGood = false;
          if(filterType == 0)bGood = true;
          else if(filterType == 1)bGood = trAOD->IsHybridTPCConstrainedGlobal();