coverity fix.
authorakalweit <akalweit@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Nov 2013 13:42:43 +0000 (13:42 +0000)
committerakalweit <akalweit@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Nov 2013 13:42:43 +0000 (13:42 +0000)
PWGPP/EvTrkSelection/AliSingleTrackEffCuts.cxx

index c806ddb..bf3ab85 100644 (file)
@@ -315,6 +315,7 @@ Bool_t AliSingleTrackEffCuts::IsMCParticleGenerated(TObject* obj)
     }
   } else { // Check on AODs
     AliAODMCParticle* mcPart = dynamic_cast<AliAODMCParticle *>(obj);      
+    if (!mcPart) return kFALSE;
     if(!mcPart->IsPhysicalPrimary()) isSelected = kFALSE;
   }