]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Protection added for empty fTree->GetTree() (H.Beck)
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Mar 2013 13:25:49 +0000 (13:25 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Mar 2013 13:25:49 +0000 (13:25 +0000)
ANALYSIS/AliAnalysisManager.cxx

index b4d13053d3d776916a77765eaa52e40390fa02df..d89d299e365ff20cad04c636b248da747c6ffeb0 100644 (file)
@@ -312,7 +312,7 @@ Int_t AliAnalysisManager::GetEntry(Long64_t entry, Int_t getall)
    fCurrentEntry = entry;
    if (!fAutoBranchHandling)
      return 123456789;
-   if (!fTree) return -1; 
+   if (!fTree || !fTree->GetTree()) return -1;
    fIOTimer->Start(kTRUE); 
    Long64_t readbytes = fTree->GetTree()->GetEntry(entry, getall);
    fIOTimer->Stop();