]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Replacing AliFatal by an AliError in GetIndex to avoid a crash in case of a corrupted...
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2007 10:56:22 +0000 (10:56 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2007 10:56:22 +0000 (10:56 +0000)
MUON/mapping/AliMpExMap.cxx

index 4660f7817d6a9b26d05e05743ec8755630727774..7d0c248feb4c693f12bda2f10ac87c71f8d7fa23 100644 (file)
@@ -75,8 +75,8 @@ Long_t  AliMpExMap::GetIndex(const TString& s)
 /// Convert the TString to integer.
 
   if (s.Length() > 5) {
-    AliFatalClass("String too long.");
-    return 0;
+    AliErrorClass("String too long.");
+    return -1;
   }  
 
   Long_t index = 0;