]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Nov 2006 17:03:41 +0000 (17:03 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Nov 2006 17:03:41 +0000 (17:03 +0000)
RICH/AliRICHv1.cxx

index 0eb9dade678d9181041f6ca4e335d89b0c73795a..3f44ae671dbd7ff8ebde11c9496fe8db6e517404 100644 (file)
@@ -438,7 +438,12 @@ void AliRICHv1::Digits2Raw()
 //   Returns: none    
   AliDebug(1,"Start.");
   GetLoader()->LoadDigits();
-  GetLoader()->TreeD()->GetEntry(0);
+  TTree * treeD = GetLoader()->TreeD();
+  if(!treeD) {
+    AliError("No digits tree!");
+    return;
+  }
+  treeD->GetEntry(0);
   
   ofstream file[AliRICHDigit::kNddls];   //output streams
   Int_t    cnt[AliRICHDigit::kNddls];        //data words counters for DDLs