Additional protection (T.Kuhr)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Feb 2004 19:56:07 +0000 (19:56 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Feb 2004 19:56:07 +0000 (19:56 +0000)
RICH/AliRICHDigitizer.h

index d4a5d542a31fef90d51475a5f8a46eb4c9336d41..c907b652b48f476c9da51a0d4e2101a5dacc8641 100644 (file)
@@ -20,7 +20,7 @@ public:
         
   void     Exec(Option_t* option=0);                //virtual
   Bool_t   Init();                                  //virtual
-  Bool_t   GetDebug() const {return gAlice->GetDebug();}
+  Bool_t   GetDebug() const {return ((gAlice) ? gAlice->GetDebug() : kFALSE);}
   AliRICH* Rich()     const {return fRich;}
 protected:
   AliRICH* fRich; //pointer to main RICH object