Additional protection in case of negative indexes. More investigation is needed
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Mar 2006 16:52:41 +0000 (16:52 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Mar 2006 16:52:41 +0000 (16:52 +0000)
ITS/AliITSpList.cxx

index 61b9ba5..7c6e821 100644 (file)
@@ -183,6 +183,7 @@ void AliITSpList::AddSignal(Int_t i,Int_t j,Int_t trk,Int_t ht,Int_t mod,
     // Return:
     //    none.
     Int_t index = GetIndex(i,j);
+    if (index<0) return;
     TClonesArray &rfa = *fa;
     if(GetpListItem(index)==0){ // must create AliITSpListItem
       new(rfa[index])AliITSpListItem(trk,ht,mod,index,signal);