]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
adding NULL pointer protection
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Oct 2011 13:01:34 +0000 (13:01 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Oct 2011 13:01:34 +0000 (13:01 +0000)
HLT/CALO/AliHLTCaloMapper.cxx

index c3642ccf5e672bd7f1957607927ec9df79357396..3eae87ad41d58fe9df5a17f5bacefb3ac98f75fa 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: AliHLTCalorimeterMapper.cxx 34622 2009-09-04 13:22:01Z odjuvsla $
+// $Id$
 
 /**************************************************************************
  * This file is property of and copyright by the Experimental Nuclear     *
@@ -96,6 +96,7 @@ AliHLTCaloMapper::GetFilePath()
 int 
 AliHLTCaloMapper::GetChannelID(const AliHLTUInt32_t spec, const Int_t hadd)
 {
+  if (!fSpecificationMapPtr) return -ENODEV;
   Short_t index = GetDDLFromSpec(spec);
   if( index < 0 )
     {