Program: 145920
Project: 145920
Buggy source:
@Override public TestResult readTestResult(InputStream resultStream){
  TestResult testResult=new TestResult();
  try {
    DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
    DocumentBuilder db=dbf.newDocumentBuilder();
    Document doc=db.parse(new InputSource(new InputStreamReader(resultStream,"String_Node_Str")));
    doc.getDocumentElement().normalize();
    Element finalCounts=(Element)doc.getElementsByTagName("String_Node_Str").item(0);
    String right=finalCounts.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    String wrong=finalCounts.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    String ignores=finalCounts.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    String exceptions=finalCounts.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    String runTimeInMillis=doc.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    testResult.setRight(Integer.parseInt(right));
    testResult.setWrong(Integer.parseInt(wrong));
    testResult.setIgnored(Integer.parseInt(ignores));
    testResult.setException(Integer.parseInt(exceptions));
    testResult.setRunTimeMillis(Integer.parseInt(runTimeInMillis));
    testResult.setActionResultTables(createActionResultTable(doc.getElementsByTagName("String_Node_Str").item(0)));
    testResult.setInstructionResultTables(createInstructionsResult(doc.getElementsByTagName("String_Node_Str").item(0)));
  }
 catch (  ParserConfigurationException|SAXException|IOException e) {
    LOGGER.error(e.getMessage());
  }
  return testResult;
}

Fixed version (ground truth):
@Override public TestResult readTestResult(InputStream resultStream){
  TestResult testResult=new TestResult();
  try {
    DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
    DocumentBuilder db=dbf.newDocumentBuilder();
    Document doc=db.parse(new InputSource(new InputStreamReader(resultStream,"String_Node_Str")));
    doc.getDocumentElement().normalize();
    Element finalCounts=(Element)doc.getElementsByTagName("String_Node_Str").item(0);
    String right=finalCounts.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    String wrong=finalCounts.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    String ignores=finalCounts.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    String exceptions=finalCounts.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    String runTimeInMillis=doc.getElementsByTagName("String_Node_Str").item(0).getTextContent();
    if (right.isEmpty() && wrong.isEmpty() && ignores.isEmpty()) {
      return testResult;
    }
    testResult.setRight(Integer.parseInt(right));
    testResult.setWrong(Integer.parseInt(wrong));
    testResult.setIgnored(Integer.parseInt(ignores));
    testResult.setException(Integer.parseInt(exceptions));
    testResult.setRunTimeMillis(Integer.parseInt(runTimeInMillis));
    testResult.setActionResultTables(createActionResultTable(doc.getElementsByTagName("String_Node_Str").item(0)));
    testResult.setInstructionResultTables(createInstructionsResult(doc.getElementsByTagName("String_Node_Str").item(0)));
  }
 catch (  ParserConfigurationException|SAXException|IOException e) {
    LOGGER.error(e.getMessage());
  }
  return testResult;
}