]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fix.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Jan 2011 07:34:30 +0000 (07:34 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Jan 2011 07:34:30 +0000 (07:34 +0000)
STEER/AliLego.cxx

index a118d5250f41ce018891143c1acd575fe850a485..d638cedf0932b26a362f240aba21aa74b9023c9f 100644 (file)
@@ -419,7 +419,7 @@ void AliLego::StepManager()
            new(lvols[fStepsBackward]) AliDebugVolume(vol,copy,step,pos[0], pos[1], pos[2], status);
            
            AliDebugVolume* tmp = dynamic_cast<AliDebugVolume*>((*fVolumesFwd)[fStepsBackward]);
-           if ((tmp->IsVEqual(vol, copy)) && (!fErrorCondition)) 
+           if (tmp && !(tmp->IsVEqual(vol, copy)) && (!fErrorCondition)) 
            {
                AliWarning(Form("Problem at (x,y,z): %d %f %f %f, volumes: %s %s step: %f\n", 
                                fStepsBackward, pos[0], pos[1], pos[2], tmp->GetName(), vol, step));