Program: 24161
Project: 24161
Buggy source:
private void readExamples(ResourceDefn defn,Sheet sheet) throws Exception {
  if (sheet != null) {
    for (int row=0; row < sheet.rows.size(); row++) {
      String name=sheet.getColumn(row,"String_Node_Str");
      if (name != null && !name.equals("String_Node_Str")) {
        String id=sheet.getColumn(row,"String_Node_Str");
        String desc=sheet.getColumn(row,"String_Node_Str");
        if (desc == null || desc.equals("String_Node_Str"))         throw new Exception("String_Node_Str" + name + "String_Node_Str"+ this.name);
        File file=new CSFile(folder + sheet.getColumn(row,"String_Node_Str"));
        String type=sheet.getColumn(row,"String_Node_Str");
        if (!file.exists() && !("String_Node_Str".equals(type) || isSpecialType(type)))         throw new Exception("String_Node_Str" + name + "String_Node_Str"+ file.getAbsolutePath()+ "String_Node_Str"+ this.name);
        String pn=sheet.getColumn(row,"String_Node_Str");
        if (Utilities.noString(pn)) {
          defn.getExamples().add(new Example(name,id,desc,file,parseExampleType(type,row),parseBoolean(sheet.getColumn(row,"String_Node_Str"),row,false)));
        }
 else {
          RegisteredProfile rp=null;
          for (          RegisteredProfile r : defn.getProfiles()) {
            if (r.getName().equals(pn))             rp=r;
          }
          if (rp == null)           throw new Exception("String_Node_Str" + name + "String_Node_Str"+ pn+ "String_Node_Str"+ this.name);
          rp.getExamples().put(id,new Example(name,id,desc,file,parseExampleType(type,row),parseBoolean(sheet.getColumn(row,"String_Node_Str"),row,false)));
        }
      }
    }
  }
  if (defn.getExamples().size() == 0) {
    File file=new CSFile(folder + title + "String_Node_Str");
    if (!file.exists())     throw new Exception("String_Node_Str" + file.getAbsolutePath() + "String_Node_Str"+ this.name);
    defn.getExamples().add(new Example("String_Node_Str","String_Node_Str","String_Node_Str" + title,file,ExampleType.XmlFile,true));
  }
}

Fixed version (ground truth):
private void readExamples(ResourceDefn defn,Sheet sheet) throws Exception {
  if (sheet != null) {
    for (int row=0; row < sheet.rows.size(); row++) {
      String name=sheet.getColumn(row,"String_Node_Str");
      if (name != null && !name.equals("String_Node_Str")) {
        String id=sheet.getColumn(row,"String_Node_Str");
        String desc=sheet.getColumn(row,"String_Node_Str");
        if (desc == null || desc.equals("String_Node_Str"))         throw new Exception("String_Node_Str" + name + "String_Node_Str"+ this.name);
        String filename=sheet.getColumn(row,"String_Node_Str");
        File file=new CSFile(folder + filename);
        String type=sheet.getColumn(row,"String_Node_Str");
        if (!file.exists() && !("String_Node_Str".equals(type) || isSpecialType(type)))         throw new Exception("String_Node_Str" + name + "String_Node_Str"+ file.getAbsolutePath()+ "String_Node_Str"+ this.name);
        String pn=sheet.getColumn(row,"String_Node_Str");
        if (Utilities.noString(pn)) {
          defn.getExamples().add(new Example(name,id,desc,file,parseExampleType(type,row),parseBoolean(sheet.getColumn(row,"String_Node_Str"),row,false)));
        }
 else {
          RegisteredProfile rp=null;
          for (          RegisteredProfile r : defn.getProfiles()) {
            if (r.getName().equals(pn))             rp=r;
          }
          if (rp == null)           throw new Exception("String_Node_Str" + name + "String_Node_Str"+ pn+ "String_Node_Str"+ this.name);
          rp.getExamples().put(filename,new Example(filename,id,desc,file,parseExampleType(type,row),parseBoolean(sheet.getColumn(row,"String_Node_Str"),row,false)));
        }
      }
    }
  }
  if (defn.getExamples().size() == 0) {
    File file=new CSFile(folder + title + "String_Node_Str");
    if (!file.exists())     throw new Exception("String_Node_Str" + file.getAbsolutePath() + "String_Node_Str"+ this.name);
    defn.getExamples().add(new Example("String_Node_Str","String_Node_Str","String_Node_Str" + title,file,ExampleType.XmlFile,true));
  }
}