Program: 58877
Project: 58877
Buggy source:
/** 
 * Reacts on the elements of the entry tag. An example entry tag looks like this: <entry id="1" name="ec:1.8.4.1" type="enzyme" reaction="rn:R01292" link="http://www.genome.jp/dbget-bin/www_bget?enzyme+1.8.4.1">
 */
protected void handleEntryTag(){
  int iEntryId=0;
  String sName="String_Node_Str";
  String sType="String_Node_Str";
  String sExternalLink="String_Node_Str";
  String sReactionId="String_Node_Str";
  for (int iAttributeIndex=0; iAttributeIndex < attributes.getLength(); iAttributeIndex++) {
    sAttributeName=attributes.getLocalName(iAttributeIndex);
    if ("String_Node_Str".equals(sAttributeName)) {
      sAttributeName=attributes.getQName(iAttributeIndex);
    }
    if (sAttributeName.equals("String_Node_Str")) {
      iEntryId=Integer.valueOf(attributes.getValue(iAttributeIndex)).intValue();
    }
 else     if (sAttributeName.equals("String_Node_Str")) {
      sName=attributes.getValue(iAttributeIndex);
    }
 else     if (sAttributeName.equals("String_Node_Str")) {
      sType=attributes.getValue(iAttributeIndex);
    }
 else     if (sAttributeName.equals("String_Node_Str")) {
      sExternalLink=attributes.getValue(iAttributeIndex);
    }
 else     if (sAttributeName.equals("String_Node_Str")) {
      sReactionId=attributes.getValue(iAttributeIndex);
    }
  }
  iCurrentEntryId=iEntryId;
  alCurrentVertex.clear();
  if (sType.equals("String_Node_Str")) {
    StringTokenizer sTokenText=new StringTokenizer(sName,"String_Node_Str");
    Integer iDavidId=-1;
    String sTmpVertexName="String_Node_Str";
    while (sTokenText.hasMoreTokens()) {
      sTmpVertexName=sTokenText.nextToken();
      if (sTmpVertexName.substring(4).equals("String_Node_Str")) {
        continue;
      }
      iDavidId=generalManager.getIDMappingManager().getID(EMappingType.ENTREZ_GENE_ID_2_DAVID,Integer.valueOf(sTmpVertexName.substring(4)));
      if (iDavidId == null) {
        continue;
      }
      currentVertex=pathwayItemManager.createVertexGene(sTmpVertexName,sType,sExternalLink,sReactionId,iDavidId);
      alCurrentVertex.add(currentVertex);
    }
  }
 else {
    currentVertex=pathwayItemManager.createVertex(sName,sType,sExternalLink,sReactionId);
    alCurrentVertex.add(currentVertex);
  }
}

Fixed version (ground truth):
/** 
 * Reacts on the elements of the entry tag. An example entry tag looks like this: <entry id="1" name="ec:1.8.4.1" type="enzyme" reaction="rn:R01292" link="http://www.genome.jp/dbget-bin/www_bget?enzyme+1.8.4.1">
 */
protected void handleEntryTag(){
  int iEntryId=0;
  String sName="String_Node_Str";
  String sType="String_Node_Str";
  String sExternalLink="String_Node_Str";
  String sReactionId="String_Node_Str";
  for (int iAttributeIndex=0; iAttributeIndex < attributes.getLength(); iAttributeIndex++) {
    sAttributeName=attributes.getLocalName(iAttributeIndex);
    if ("String_Node_Str".equals(sAttributeName)) {
      sAttributeName=attributes.getQName(iAttributeIndex);
    }
    if (sAttributeName.equals("String_Node_Str")) {
      iEntryId=Integer.valueOf(attributes.getValue(iAttributeIndex)).intValue();
    }
 else     if (sAttributeName.equals("String_Node_Str")) {
      sName=attributes.getValue(iAttributeIndex);
    }
 else     if (sAttributeName.equals("String_Node_Str")) {
      sType=attributes.getValue(iAttributeIndex);
    }
 else     if (sAttributeName.equals("String_Node_Str")) {
      sExternalLink=attributes.getValue(iAttributeIndex);
    }
 else     if (sAttributeName.equals("String_Node_Str")) {
      sReactionId=attributes.getValue(iAttributeIndex);
    }
  }
  iCurrentEntryId=iEntryId;
  alCurrentVertex.clear();
  if (sType.equals("String_Node_Str")) {
    StringTokenizer sTokenText=new StringTokenizer(sName,"String_Node_Str");
    Integer iDavidId=-1;
    String sTmpVertexName="String_Node_Str";
    Set<Integer> iSetDavidID=new HashSet<Integer>();
    while (sTokenText.hasMoreTokens()) {
      sTmpVertexName=sTokenText.nextToken();
      if (sTmpVertexName.substring(4).equals("String_Node_Str")) {
        continue;
      }
      iDavidId=generalManager.getIDMappingManager().getID(EMappingType.ENTREZ_GENE_ID_2_DAVID,Integer.valueOf(sTmpVertexName.substring(4)));
      if (iDavidId == null) {
        continue;
      }
      iSetDavidID.add(iDavidId);
    }
    alCurrentVertex.addAll(pathwayItemManager.createVertexGene(sTmpVertexName,sType,sExternalLink,sReactionId,iSetDavidID));
  }
 else {
    currentVertex=pathwayItemManager.createVertex(sName,sType,sExternalLink,sReactionId);
    alCurrentVertex.add(currentVertex);
  }
}