Coverity
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Jul 2011 12:19:19 +0000 (12:19 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Jul 2011 12:19:19 +0000 (12:19 +0000)
PWG3/vertexingHF/AliAnalysisTaskSECharmFraction.cxx
PWG3/vertexingHF/AliAnalysisTaskSELambdac.cxx

index 009a0bf..4381764 100644 (file)
@@ -7142,6 +7142,7 @@ Bool_t AliAnalysisTaskSECharmFraction::FillHistos(AliAODRecoDecayHF2Prong *d,TLi
            break;
          }
          mcD0Parent=dynamic_cast<AliAODMCParticle*>(arrayMC->At(mcD0Parent->GetMother()));
+         if(mcD0Parent==0x0) break;
        }
        if(notfound)continue;
        if(TMath::Abs(mcD0Parent->GetPdgCode())==4)continue;//D0 from c quarks already counted
index fe1442c..723a255 100644 (file)
@@ -817,7 +817,6 @@ void AliAnalysisTaskSELambdac::UserExec(Option_t */*option*/)
   // AOD primary vertex
   AliAODVertex *vtx1 = (AliAODVertex*)aod->GetPrimaryVertex();
   if(!vtx1) return;
-  if(vtx1==0x0) return;
 
   
   // load MC particles