]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Feb 2004 17:38:12 +0000 (17:38 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Feb 2004 17:38:12 +0000 (17:38 +0000)
STEER/AliDisplay.cxx

index 8bb6bf67a1d85c59b657b29d522abe338b73b05a..e9de668804c5d5fce6ecd2c29faf7181bc0744e2 100644 (file)
@@ -848,8 +848,8 @@ void AliDisplay::LoadPoints()
          AliDetector* detector = dynamic_cast<AliDetector*>(module);
          if(detector)
            {
-             detector->TreeH()->GetEvent(track);
-             detector->LoadPoints(track);
+             if (detector->TreeH()->GetEvent(track))
+              detector->LoadPoints(track);
            }
       }
       next.Reset();