Program: 77379
Project: 77379
Buggy source:
/** 
 * test abnormal input arguments
 */
public void testReportDocumentAbnormal(){
  String report_design=path + INPUT_FOLDER + System.getProperty("String_Node_Str")+ "String_Node_Str";
  String report_document=path + OUTPUT_FOLDER + System.getProperty("String_Node_Str")+ "String_Node_Str";
  try {
    createReportDocument(report_design,report_document);
    IDocArchiveReader archive=new FileArchiveReader(report_document);
    IReportDocument reportDoc=engine.openReportDocument(report_document);
    TOCNode tocNode;
    tocNode=(TOCNode)reportDoc.findTOC(null);
    assertEquals("String_Node_Str",null,tocNode.getDisplayString());
    tocNode=(TOCNode)reportDoc.findTOC("String_Node_Str");
    assertNull("String_Node_Str",tocNode);
    tocNode=(TOCNode)reportDoc.findTOC("String_Node_Str");
    assertNull("String_Node_Str",tocNode);
    tocNode=(TOCNode)reportDoc.findTOC("String_Node_Str");
    assertNull("String_Node_Str",tocNode);
    List children;
    children=reportDoc.getChildren(null);
    assertNotNull(children);
    assertEquals("String_Node_Str",1,children.size());
    children=reportDoc.getChildren("String_Node_Str");
    assertNull("String_Node_Str",children);
    children=reportDoc.getChildren("String_Node_Str");
    assertNull("String_Node_Str",children);
    children=reportDoc.getChildren("String_Node_Str");
    assertNull("String_Node_Str",children);
    long pageNum;
    String bookmark=null;
    pageNum=reportDoc.getPageNumber(bookmark);
    assertEquals("String_Node_Str",-1,pageNum);
    bookmark="String_Node_Str";
    pageNum=reportDoc.getPageNumber(bookmark);
    assertEquals("String_Node_Str",-1,pageNum);
    bookmark="String_Node_Str";
    pageNum=reportDoc.getPageNumber(bookmark);
    assertEquals("String_Node_Str",-1,pageNum);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * test abnormal input arguments
 */
public void testReportDocumentAbnormal(){
  String report_design=path + INPUT_FOLDER + System.getProperty("String_Node_Str")+ "String_Node_Str";
  String report_document=path + OUTPUT_FOLDER + System.getProperty("String_Node_Str")+ "String_Node_Str";
  try {
    createReportDocument(report_design,report_document);
    IReportDocument reportDoc=engine.openReportDocument(report_document);
    TOCNode tocNode;
    tocNode=(TOCNode)reportDoc.findTOC(null);
    assertEquals("String_Node_Str",null,tocNode.getDisplayString());
    tocNode=(TOCNode)reportDoc.findTOC("String_Node_Str");
    assertNull("String_Node_Str",tocNode);
    tocNode=(TOCNode)reportDoc.findTOC("String_Node_Str");
    assertNull("String_Node_Str",tocNode);
    tocNode=(TOCNode)reportDoc.findTOC("String_Node_Str");
    assertNull("String_Node_Str",tocNode);
    List children;
    children=reportDoc.getChildren(null);
    assertNotNull(children);
    assertEquals("String_Node_Str",1,children.size());
    children=reportDoc.getChildren("String_Node_Str");
    assertNull("String_Node_Str",children);
    children=reportDoc.getChildren("String_Node_Str");
    assertNull("String_Node_Str",children);
    children=reportDoc.getChildren("String_Node_Str");
    assertNull("String_Node_Str",children);
    long pageNum;
    String bookmark=null;
    pageNum=reportDoc.getPageNumber(bookmark);
    assertEquals("String_Node_Str",-1,pageNum);
    bookmark="String_Node_Str";
    pageNum=reportDoc.getPageNumber(bookmark);
    assertEquals("String_Node_Str",-1,pageNum);
    bookmark="String_Node_Str";
    pageNum=reportDoc.getPageNumber(bookmark);
    assertEquals("String_Node_Str",-1,pageNum);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}