Program: 59081
Project: 59081
Buggy source:
public void initData(){
  alDataStorages.clear();
  if (alSetData == null)   return;
  if (alSetSelection == null)   return;
  for (  ISet tmpSet : alSetData) {
    if (tmpSet.getSetType().equals(SetType.SET_GENE_EXPRESSION_DATA)) {
      for (      IStorage tmpStorage : tmpSet.getStorageByDim(0))       alDataStorages.add(tmpStorage);
    }
  }
  ArrayList<Integer> alTempList=alSetSelection.get(0).getSelectionIdArray();
  if (alTempList == null) {
    alTempList=new ArrayList<Integer>();
  }
  mapSelections.put(ESelectionType.EXTERNAL_SELECTION,alTempList);
  int iStorageLength=0;
  if (alDataStorages.size() > 0) {
    iStorageLength=alDataStorages.get(0).getArrayFloat().length;
  }
  alTempList=new ArrayList<Integer>(iStorageLength);
  for (int iCount=0; iCount < iStorageLength; iCount++) {
    if (bRenderOnlyContext) {
      int iDavidId=getDavidIDFromStorageIndex(iCount);
      if (iDavidId == -1) {
        generalManager.getLogger().log(Level.FINE,"String_Node_Str");
        continue;
      }
 else {
        PathwayVertexGraphItem tmpPathwayVertexGraphItem=((PathwayVertexGraphItem)generalManager.getPathwayItemManager().getItem(generalManager.getPathwayItemManager().getPathwayVertexGraphItemIdByDavidId(iDavidId)));
        if (tmpPathwayVertexGraphItem == null) {
          generalManager.getLogger().log(Level.FINE,"String_Node_Str");
          continue;
        }
      }
    }
    alTempList.add(iCount);
  }
  mapSelections.put(ESelectionType.COMPLETE_SELECTION,alTempList);
  alTempList=new ArrayList<Integer>();
  for (int iCount=0; iCount < alDataStorages.size(); iCount++) {
    alTempList.add(iCount);
  }
  mapSelections.put(ESelectionType.STORAGE_SELECTION,alTempList);
  initLists();
}

Fixed version (ground truth):
public void initData(){
  alDataStorages.clear();
  if (alSetData == null)   return;
  if (alSetSelection == null)   return;
  for (  ISet tmpSet : alSetData) {
    if (tmpSet.getSetType().equals(SetType.SET_GENE_EXPRESSION_DATA)) {
      for (      IStorage tmpStorage : tmpSet.getStorageByDim(0))       alDataStorages.add(tmpStorage);
    }
  }
  ArrayList<Integer> alTempList=alSetSelection.get(0).getSelectionIdArray();
  if (alTempList == null) {
    alTempList=new ArrayList<Integer>();
  }
  mapSelections.put(ESelectionType.EXTERNAL_SELECTION,alTempList);
  int iStorageLength=0;
  if (alDataStorages.size() > 0) {
    iStorageLength=2000;
  }
  alTempList=new ArrayList<Integer>(iStorageLength);
  for (int iCount=0; iCount < iStorageLength; iCount++) {
    if (bRenderOnlyContext) {
      int iDavidId=getDavidIDFromStorageIndex(iCount);
      if (iDavidId == -1) {
        generalManager.getLogger().log(Level.FINE,"String_Node_Str");
        continue;
      }
 else {
        PathwayVertexGraphItem tmpPathwayVertexGraphItem=((PathwayVertexGraphItem)generalManager.getPathwayItemManager().getItem(generalManager.getPathwayItemManager().getPathwayVertexGraphItemIdByDavidId(iDavidId)));
        if (tmpPathwayVertexGraphItem == null) {
          generalManager.getLogger().log(Level.FINE,"String_Node_Str");
          continue;
        }
      }
    }
    alTempList.add(iCount);
  }
  mapSelections.put(ESelectionType.COMPLETE_SELECTION,alTempList);
  alTempList=new ArrayList<Integer>();
  for (int iCount=0; iCount < alDataStorages.size(); iCount++) {
    alTempList.add(iCount);
  }
  mapSelections.put(ESelectionType.STORAGE_SELECTION,alTempList);
  initLists();
}