Coverity fix
authorauras <auras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Jul 2013 12:05:35 +0000 (12:05 +0000)
committerauras <auras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Jul 2013 12:05:35 +0000 (12:05 +0000)
MFT/AliMuonForwardTrackFinder.cxx

index f9bc1e7..4d39448 100644 (file)
@@ -1413,9 +1413,9 @@ void AliMuonForwardTrackFinder::PrintParticleHistory() {
   if (fLabelMC>=0) part = fStack->Particle(fLabelMC);
 
   AliDebug(1, Form("fStack->Particle(%d) = %p", fLabelMC, part));
-  AliDebug(1, Form("fStack->Particle(%d)->GetPdgCode() = %d", fLabelMC, part->GetPdgCode()));
 
   if (part) {
+    AliDebug(1, Form("fStack->Particle(%d)->GetPdgCode() = %d", fLabelMC, part->GetPdgCode()));
     if (part->GetFirstMother() != -1) {
       TParticle *partMother = fStack->Particle(part->GetFirstMother());
       AliDebug(1, Form("fStack->Particle(%d) = %p", part->GetFirstMother(), partMother));