From e1603c28d94214e9f830ca48ef15c51c813af6b2 Mon Sep 17 00:00:00 2001 From: fprino Date: Mon, 18 Mar 2013 10:09:24 +0000 Subject: [PATCH] Coverity --- PWGHF/vertexingHF/AliCFVertexingHFLctoV0bachelor.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PWGHF/vertexingHF/AliCFVertexingHFLctoV0bachelor.cxx b/PWGHF/vertexingHF/AliCFVertexingHFLctoV0bachelor.cxx index 663221be7c3..9f25c572701 100644 --- a/PWGHF/vertexingHF/AliCFVertexingHFLctoV0bachelor.cxx +++ b/PWGHF/vertexingHF/AliCFVertexingHFLctoV0bachelor.cxx @@ -407,6 +407,10 @@ Bool_t AliCFVertexingHFLctoV0bachelor::CheckMCChannelDecay() const mcPartDaughter0 = dynamic_cast(fmcArray->At(daughter1)); // the bachelor mcPartDaughter1 = dynamic_cast(fmcArray->At(daughter0)); // the V0 } + if (!mcPartDaughter0 || !mcPartDaughter1) { + AliDebug(2,"Problems in the MC Daughters after swapping V0 and bachelor\n"); + return checkCD; + } Int_t daughter = mcPartDaughter1->GetDaughter(0); if (daughter<0) { -- 2.43.0