From e8572077a4133f679fa7a749dcbdba774c903c49 Mon Sep 17 00:00:00 2001 From: hristov Date: Mon, 21 May 2007 15:22:24 +0000 Subject: [PATCH] Protection when setting geometry to be loaded from file (Andrei) --- STEER/AliRun.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STEER/AliRun.cxx b/STEER/AliRun.cxx index d185070f9d7..f26e3944405 100644 --- a/STEER/AliRun.cxx +++ b/STEER/AliRun.cxx @@ -283,7 +283,7 @@ void AliRun::SetRootGeometry(Bool_t flag) { // Instruct application that the geometry is to be retreived from a root file. fIsRootGeometry = flag; - if (flag) gMC->SetRootGeometry(); + if (flag && gMC) gMC->SetRootGeometry(); } //_______________________________________________________________________ void AliRun::SetField(Int_t type, Int_t version, Float_t scale, -- 2.43.0