]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Check existence of getter before using it
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Feb 2004 12:38:12 +0000 (12:38 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Feb 2004 12:38:12 +0000 (12:38 +0000)
EMCAL/AliEMCALLoader.cxx
PHOS/AliPHOSLoader.cxx

index 6f669bc421e24e0ef2a68144d914c03f37acacbf..d24d7fa6e112020992eb906232013ee5755bea49 100644 (file)
@@ -92,7 +92,8 @@ AliEMCALLoader::~AliEMCALLoader()
   Clean(fgkRecParticlesName);
   // set to 0x0 the objgetter in AliGetter ... weird isn it !
   AliEMCALGetter * gime = AliEMCALGetter::Instance() ; 
-  gime->Reset() ;
+  if (gime) 
+    gime->Reset() ;
 }
 
 //____________________________________________________________________________ 
index 72db4be8fd5c09d1c2f37bc42c74ae5e834903da..83007ac48f0c5a75c6045ed32685cba897917c70 100644 (file)
@@ -94,7 +94,8 @@ AliPHOSLoader::~AliPHOSLoader()
   Clean(fgkRecParticlesName);
   // set to 0x0 the objgetter in AliGetter ... weird isn it !
   AliPHOSGetter * gime = AliPHOSGetter::Instance() ; 
-  gime->Reset() ;
+  if (gime) 
+    gime->Reset() ;
 }
 
 //____________________________________________________________________________