Program: 58940
Project: 58940
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public void handleExternalEvent(IUniqueObject eventTrigger,IEventContainer eventContainer){
switch (eventContainer.getEventType()) {
case LOAD_PATHWAY_BY_GENE:
    IDListEventContainer<Integer> idContainer=(IDListEventContainer<Integer>)eventContainer;
  if (idContainer.getIDType() == EIDType.DAVID) {
    int iGraphItemID=0;
    ArrayList<ICaleydoGraphItem> alPathwayVertexGraphItem=new ArrayList<ICaleydoGraphItem>();
    for (    Integer iDavidID : idContainer.getIDs()) {
      iGraphItemID=generalManager.getPathwayItemManager().getPathwayVertexGraphItemIdByDavidId(iDavidID);
      if (iGraphItemID == -1)       continue;
      PathwayVertexGraphItem tmpPathwayVertexGraphItem=((PathwayVertexGraphItem)generalManager.getPathwayItemManager().getItem(iGraphItemID));
      if (tmpPathwayVertexGraphItem == null)       continue;
      alPathwayVertexGraphItem.add(tmpPathwayVertexGraphItem);
    }
    if (!alPathwayVertexGraphItem.isEmpty()) {
      loadDependentPathways(alPathwayVertexGraphItem);
    }
  }
 else {
    throw new IllegalStateException("String_Node_Str");
  }
break;
case LOAD_PATHWAY_BY_PATHWAY_ID:
IDListEventContainer<Integer> pathwayIDContainer=(IDListEventContainer<Integer>)eventContainer;
for (Integer iPathwayID : pathwayIDContainer.getIDs()) {
addPathwayView(iPathwayID);
}
break;
case SELECTION_UPDATE:
lastSelectionDelta=((DeltaEventContainer<ISelectionDelta>)eventContainer).getSelectionDelta();
}
bUpdateOffScreenTextures=true;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public void handleExternalEvent(IUniqueObject eventTrigger,IEventContainer eventContainer){
switch (eventContainer.getEventType()) {
case LOAD_PATHWAY_BY_GENE:
    IDListEventContainer<Integer> idContainer=(IDListEventContainer<Integer>)eventContainer;
  if (idContainer.getIDType() == EIDType.REFSEQ_MRNA_INT) {
    int iGraphItemID=0;
    Integer iDavidID=-1;
    ArrayList<ICaleydoGraphItem> alPathwayVertexGraphItem=new ArrayList<ICaleydoGraphItem>();
    for (    Integer iRefSeqID : idContainer.getIDs()) {
      iDavidID=idMappingManager.getID(EMappingType.REFSEQ_MRNA_INT_2_DAVID,iRefSeqID);
      if (iDavidID == null || iDavidID == -1)       throw new IllegalStateException("String_Node_Str");
      iGraphItemID=generalManager.getPathwayItemManager().getPathwayVertexGraphItemIdByDavidId(iDavidID);
      if (iGraphItemID == -1)       continue;
      PathwayVertexGraphItem tmpPathwayVertexGraphItem=((PathwayVertexGraphItem)generalManager.getPathwayItemManager().getItem(iGraphItemID));
      if (tmpPathwayVertexGraphItem == null)       continue;
      alPathwayVertexGraphItem.add(tmpPathwayVertexGraphItem);
    }
    if (!alPathwayVertexGraphItem.isEmpty()) {
      loadDependentPathways(alPathwayVertexGraphItem);
    }
  }
 else {
    throw new IllegalStateException("String_Node_Str");
  }
break;
case LOAD_PATHWAY_BY_PATHWAY_ID:
IDListEventContainer<Integer> pathwayIDContainer=(IDListEventContainer<Integer>)eventContainer;
for (Integer iPathwayID : pathwayIDContainer.getIDs()) {
addPathwayView(iPathwayID);
}
break;
case SELECTION_UPDATE:
lastSelectionDelta=((DeltaEventContainer<ISelectionDelta>)eventContainer).getSelectionDelta();
}
bUpdateOffScreenTextures=true;
}