Program: 58304
Project: 58304
Buggy source:
public void handleSelectionUpdate(final ISelectionDelta selectionDelta,boolean scrollToSelection,String info){
  if (selectionDelta.getIDType() != EIDType.EXPRESSION_INDEX)   return;
  Display.getDefault().asyncExec(new Runnable(){
    public void run(){
      if (!checkInternetConnection())       return;
      int iItemsToLoad=0;
      for (      SelectionDeltaItem selectionDeltaItem : selectionDelta) {
        if (selectionDeltaItem.getSelectionType() == SelectionType.MOUSE_OVER || selectionDeltaItem.getSelectionType() == SelectionType.SELECTION) {
          int expressionIndex=selectionDeltaItem.getPrimaryID();
          Set<String> setRefSeqIDs=generalManager.getIDMappingManager().getIDAsSet(EIDType.EXPRESSION_INDEX,EIDType.REFSEQ_MRNA,expressionIndex);
          String sRefSeqID=null;
          if ((setRefSeqIDs != null && !setRefSeqIDs.isEmpty())) {
            sRefSeqID=(String)setRefSeqIDs.toArray()[0];
          }
          Set<Integer> setDavidIDs=generalManager.getIDMappingManager().getIDAsSet(EIDType.EXPRESSION_INDEX,EIDType.DAVID,expressionIndex);
          Integer iDavidID=null;
          if ((setDavidIDs != null && !setDavidIDs.isEmpty())) {
            iDavidID=(Integer)setDavidIDs.toArray()[0];
          }
          if (iDavidID == null)           continue;
          if (iItemsToLoad == 0) {
            String sURL=urlGenerator.createURL(eBrowserQueryType,iDavidID);
            browser.setUrl(sURL);
            browser.update();
            textURL.setText(sURL);
            iAlDavidID.clear();
          }
          String sOutput="String_Node_Str";
          sOutput=sOutput + generalManager.getIDMappingManager().getID(EIDType.DAVID,EIDType.GENE_SYMBOL,iDavidID);
          sOutput=sOutput + "String_Node_Str";
          sOutput=sOutput + sRefSeqID;
          if (iAlDavidID.contains(selectionDeltaItem.getPrimaryID())) {
            continue;
          }
          iAlDavidID.add(iDavidID);
          iItemsToLoad++;
        }
      }
    }
  }
);
}

Fixed version (ground truth):
public void handleSelectionUpdate(final ISelectionDelta selectionDelta,boolean scrollToSelection,String info){
  if (selectionDelta.getIDType() != EIDType.EXPRESSION_INDEX)   return;
  Display.getDefault().asyncExec(new Runnable(){
    public void run(){
      if (!checkInternetConnection())       return;
      int iItemsToLoad=0;
      for (      SelectionDeltaItem selectionDeltaItem : selectionDelta) {
        if (selectionDeltaItem.getSelectionType() == SelectionType.SELECTION) {
          int expressionIndex=selectionDeltaItem.getPrimaryID();
          Set<String> setRefSeqIDs=generalManager.getIDMappingManager().getIDAsSet(EIDType.EXPRESSION_INDEX,EIDType.REFSEQ_MRNA,expressionIndex);
          String sRefSeqID=null;
          if ((setRefSeqIDs != null && !setRefSeqIDs.isEmpty())) {
            sRefSeqID=(String)setRefSeqIDs.toArray()[0];
          }
          Set<Integer> setDavidIDs=generalManager.getIDMappingManager().getIDAsSet(EIDType.EXPRESSION_INDEX,EIDType.DAVID,expressionIndex);
          Integer iDavidID=null;
          if ((setDavidIDs != null && !setDavidIDs.isEmpty())) {
            iDavidID=(Integer)setDavidIDs.toArray()[0];
          }
          if (iDavidID == null)           continue;
          if (iItemsToLoad == 0) {
            String sURL=urlGenerator.createURL(eBrowserQueryType,iDavidID);
            browser.setUrl(sURL);
            browser.update();
            textURL.setText(sURL);
            iAlDavidID.clear();
          }
          String sOutput="String_Node_Str";
          sOutput=sOutput + generalManager.getIDMappingManager().getID(EIDType.DAVID,EIDType.GENE_SYMBOL,iDavidID);
          sOutput=sOutput + "String_Node_Str";
          sOutput=sOutput + sRefSeqID;
          if (iAlDavidID.contains(selectionDeltaItem.getPrimaryID())) {
            continue;
          }
          iAlDavidID.add(iDavidID);
          iItemsToLoad++;
        }
      }
    }
  }
);
}