]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Seg fault bug (Artur)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Mar 2005 05:24:20 +0000 (05:24 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Mar 2005 05:24:20 +0000 (05:24 +0000)
MUON/AliMUONDataInterface.cxx

index ba8a7bb3fd16a1f4be4dfc36068edf9cb9b88a92..68ede878c8c252b7d52cffe1262f7d1fbbc55155 100644 (file)
@@ -269,7 +269,7 @@ Bool_t AliMUONDataInterface::FetchTreeD()
 Bool_t AliMUONDataInterface::FetchTreeR()
 {
 // Fetch the reconstructed objects tree from the current muon loader.
 Bool_t AliMUONDataInterface::FetchTreeR()
 {
 // Fetch the reconstructed objects tree from the current muon loader.
-// Nore: The addresses must still be set. 
+// Note: The addresses must still be set. 
 
        if (fMuonloader->TreeR() == NULL)
        {
 
        if (fMuonloader->TreeR() == NULL)
        {
@@ -585,7 +585,13 @@ Bool_t AliMUONDataInterface::GetEvent(Int_t event)
 // Select the current event from which to fetch data.
 // kTRUE is returned if the event was found, else kFALSE is returned.
 
 // Select the current event from which to fetch data.
 // kTRUE is returned if the event was found, else kFALSE is returned.
 
-       return FetchEvent(event);
+       if (fRunloader == NULL)
+       {
+               AliError("File not set.");
+               return kFALSE;
+       }
+       else
+               return FetchEvent(event);
 }
 
 
 }