Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Jul 2004 04:56:26 +0000 (04:56 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Jul 2004 04:56:26 +0000 (04:56 +0000)
FMD/AliFMDReconstructor.cxx

index 085c91a37e881db584de8724232cf6c9b0e0555b..fb3233c27bf9078255cb0a302c8a4b3925c60fc3 100644 (file)
@@ -129,7 +129,7 @@ void AliFMDReconstructor::Reconstruct(AliRunLoader* runLoader) const
       AliHeader *header = runLoader->GetHeader();
       AliGenEventHeader* genHeader = header->GenEventHeader();
       TArrayF *o = new TArrayF(3); 
-      genHeader->PrimaryVertex(*o);
+      if (genHeader) genHeader->PrimaryVertex(*o);
       Float_t zVertex=o->At(2);
 
       for (Int_t i=0; i<5; i++)