Program: 59162
Project: 59162
Buggy source:
public void updateReceiver(Object eventTrigger,ISet updatedSet){
  refGeneralManager.getSingelton().logMsg(this.getClass().getSimpleName() + "String_Node_Str" + eventTrigger.getClass().getSimpleName()+ "String_Node_Str"+ eventTrigger.toString()+ "String_Node_Str",LoggerType.STATUS);
  refGeneralManager.getSingelton().logMsg(this.getClass().getSimpleName() + "String_Node_Str" + updatedSet.toString(),LoggerType.STATUS);
  if (this.hashExternalId_2_HeatmapIndex == null) {
    init_External2InternalHashMap();
  }
  IStorage[] storage=updatedSet.getStorageByDim(0);
  ArrayList<Integer> resultBuffer=new ArrayList<Integer>(10);
  ArrayList<Integer> resultBufferMode=new ArrayList<Integer>(10);
  for (int i=0; i < storage.length; i++) {
    int[] intBuffer=storage[0].getArrayInt();
    int[] intBufferMode=storage[1].getArrayInt();
    for (int j=0; j < intBuffer.length; j++) {
      Iterator<IGraphItem> iterGraphItemRep=((IGraphItem)refGeneralManager.getSingelton().getPathwayItemManager().getItem(intBuffer[j])).getAllItemsByProp(EGraphItemProperty.ALIAS_PARENT).iterator();
      while (iterGraphItemRep.hasNext()) {
        Integer indexInt=hashExternalId_2_HeatmapIndex.get(iterGraphItemRep.next().getId());
        if (indexInt != null) {
          System.err.print("String_Node_Str" + intBuffer[j] + "String_Node_Str"+ indexInt+ "String_Node_Str");
          resultBuffer.add(indexInt);
          if (intBufferMode.length != 0) {
            resultBufferMode.add(intBufferMode[j]);
          }
 else {
            resultBufferMode.add(iSelectedMode_identifyier);
          }
        }
 else {
          System.err.print("String_Node_Str" + intBuffer[j] + "String_Node_Str");
        }
      }
    }
  }
  if (!resultBuffer.isEmpty()) {
    System.err.print("String_Node_Str");
    setSelectedIndex_asArrayList(resultBuffer,resultBufferMode);
  }
}

Fixed version (ground truth):
public void updateReceiver(Object eventTrigger,ISet updatedSet){
  refGeneralManager.getSingelton().logMsg(this.getClass().getSimpleName() + "String_Node_Str" + eventTrigger.getClass().getSimpleName()+ "String_Node_Str"+ eventTrigger.toString()+ "String_Node_Str",LoggerType.STATUS);
  refGeneralManager.getSingelton().logMsg(this.getClass().getSimpleName() + "String_Node_Str" + updatedSet.toString(),LoggerType.STATUS);
  if (this.hashExternalId_2_HeatmapIndex == null) {
    init_External2InternalHashMap();
  }
  IStorage[] storage=updatedSet.getStorageByDim(0);
  ArrayList<Integer> resultBuffer=new ArrayList<Integer>(10);
  ArrayList<Integer> resultBufferMode=new ArrayList<Integer>(10);
  int[] intBuffer=storage[0].getArrayInt();
  int[] intBufferMode=storage[1].getArrayInt();
  for (int j=0; j < intBuffer.length; j++) {
    Iterator<IGraphItem> iterGraphItemRep=((IGraphItem)refGeneralManager.getSingelton().getPathwayItemManager().getItem(intBuffer[j])).getAllItemsByProp(EGraphItemProperty.ALIAS_PARENT).iterator();
    while (iterGraphItemRep.hasNext()) {
      Integer indexInt=hashExternalId_2_HeatmapIndex.get(iterGraphItemRep.next().getId());
      if (indexInt != null) {
        System.err.print("String_Node_Str" + intBuffer[j] + "String_Node_Str"+ indexInt+ "String_Node_Str");
        resultBuffer.add(indexInt);
        if (intBufferMode.length != 0) {
          resultBufferMode.add(intBufferMode[j]);
        }
 else {
          resultBufferMode.add(iSelectedMode_identifyier);
        }
      }
 else {
        System.err.print("String_Node_Str" + intBuffer[j] + "String_Node_Str");
      }
    }
  }
  if (!resultBuffer.isEmpty()) {
    System.err.print("String_Node_Str");
    setSelectedIndex_asArrayList(resultBuffer,resultBufferMode);
  }
}