]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding protection for a null pointer (Panos)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Aug 2009 16:43:55 +0000 (16:43 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Aug 2009 16:43:55 +0000 (16:43 +0000)
ITS/AliITSClusterFinder.cxx

index 107adbc9787201f9edc2b5c7f9ab4387794cc777..09c2ac0f2b10bd8438d10dc778a6dc44555b657e 100644 (file)
@@ -270,6 +270,7 @@ void AliITSClusterFinder::CheckLabels2(Int_t lab[10]) {
   // Tries to find mother's labels
   //------------------------------------------------------------
   AliRunLoader *rl = AliRunLoader::Instance();
+  if(!rl) return;
   TTree *trK=(TTree*)rl->TreeK();
 
   if(trK){