Program: 10327
Project: 10327
Buggy source:
/** 
 * Adds information to the given crash report.
 * @param report The report to add sections to.
 */
public static void addInfoToCrash(CrashReport report){
  int stSize;
  try {
    stSize=Thread.currentThread().getStackTrace().length - 1;
  }
 catch (  Exception e) {
    stSize=0;
  }
  CrashReportCategory core=report.makeCategoryDepth("String_Node_Str",stSize);
  core.addCrashSection("String_Node_Str",VersionConstants.getModVersion());
  core.addCrashSection("String_Node_Str",VersionConstants.getMinecraftVersionInfo());
  core.addCrashSection("String_Node_Str",VersionConstants.getExpectedVersion());
  core.addCrashSection("String_Node_Str",VersionConstants.getProtocolVersion());
  core.addCrashSection("String_Node_Str",VersionConstants.getDataVersion());
  core.setDetail("String_Node_Str",new ICrashReportDetail<String>(){
    @Override public String call() throws Exception {
      String path=new File(WDL.class.getProtectionDomain().getCodeSource().getLocation().toURI()).getPath();
      String username=System.getProperty("String_Node_Str");
      path=path.replace(username,"String_Node_Str");
      return path;
    }
  }
);
  CrashReportCategory state=report.makeCategoryDepth("String_Node_Str",stSize);
  state.addCrashSection("String_Node_Str",minecraft);
  state.addCrashSection("String_Node_Str",worldClient);
  state.addCrashSection("String_Node_Str",networkManager);
  state.addCrashSection("String_Node_Str",thePlayer);
  state.addCrashSection("String_Node_Str",windowContainer);
  state.addCrashSection("String_Node_Str",lastClickedBlock);
  state.addCrashSection("String_Node_Str",lastEntity);
  state.addCrashSection("String_Node_Str",saveHandler);
  state.addCrashSection("String_Node_Str",chunkLoader);
  state.addCrashSection("String_Node_Str",newTileEntities);
  state.addCrashSection("String_Node_Str",newEntities);
  state.addCrashSection("String_Node_Str",newMapDatas);
  state.addCrashSection("String_Node_Str",downloading);
  state.addCrashSection("String_Node_Str",isMultiworld);
  state.addCrashSection("String_Node_Str",propsFound);
  state.addCrashSection("String_Node_Str",startOnChange);
  state.addCrashSection("String_Node_Str",overrideLastModifiedCheck);
  state.addCrashSection("String_Node_Str",saving);
  state.addCrashSection("String_Node_Str",worldLoadingDeferred);
  state.addCrashSection("String_Node_Str",worldName);
  state.addCrashSection("String_Node_Str",baseFolderName);
  CrashReportCategory base=report.makeCategoryDepth("String_Node_Str",stSize);
  if (baseProps != null) {
    if (!baseProps.isEmpty()) {
      for (      Map.Entry<Object,Object> e : baseProps.entrySet()) {
        if (!(e.getKey() instanceof String)) {
          logger.warn("String_Node_Str" + e.getKey() + "String_Node_Str");
          continue;
        }
        base.addCrashSection((String)e.getKey(),e.getValue());
      }
    }
 else {
      base.addCrashSection("String_Node_Str","String_Node_Str");
    }
  }
 else {
    base.addCrashSection("String_Node_Str","String_Node_Str");
  }
  CrashReportCategory world=report.makeCategoryDepth("String_Node_Str",stSize);
  if (worldProps != null) {
    if (!worldProps.isEmpty()) {
      for (      Map.Entry<Object,Object> e : worldProps.entrySet()) {
        if (!(e.getKey() instanceof String)) {
          logger.warn("String_Node_Str" + e.getKey() + "String_Node_Str");
          continue;
        }
        world.addCrashSection((String)e.getKey(),e.getValue());
      }
    }
 else {
      world.addCrashSection("String_Node_Str","String_Node_Str");
    }
  }
 else {
    world.addCrashSection("String_Node_Str","String_Node_Str");
  }
  CrashReportCategory global=report.makeCategoryDepth("String_Node_Str",stSize);
  if (globalProps != null) {
    if (!globalProps.isEmpty()) {
      for (      Map.Entry<Object,Object> e : globalProps.entrySet()) {
        if (!(e.getKey() instanceof String)) {
          logger.warn("String_Node_Str" + e.getKey() + "String_Node_Str");
          continue;
        }
        global.addCrashSection((String)e.getKey(),e.getValue());
      }
    }
 else {
      global.addCrashSection("String_Node_Str","String_Node_Str");
    }
  }
 else {
    global.addCrashSection("String_Node_Str","String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Adds information to the given crash report.
 * @param report The report to add sections to.
 */
public static void addInfoToCrash(CrashReport report){
  int stSize;
  try {
    stSize=Thread.currentThread().getStackTrace().length - 1;
  }
 catch (  Exception e) {
    stSize=0;
  }
  CrashReportCategory core=report.makeCategoryDepth("String_Node_Str",stSize);
  core.addCrashSection("String_Node_Str",VersionConstants.getModVersion());
  core.addCrashSection("String_Node_Str",VersionConstants.getMinecraftVersionInfo());
  core.addCrashSection("String_Node_Str",VersionConstants.getExpectedVersion());
  core.addCrashSection("String_Node_Str",VersionConstants.getProtocolVersion());
  core.addCrashSection("String_Node_Str",VersionConstants.getDataVersion());
  core.addDetail("String_Node_Str",new ICrashReportDetail<String>(){
    @Override public String call() throws Exception {
      String path=new File(WDL.class.getProtectionDomain().getCodeSource().getLocation().toURI()).getPath();
      String username=System.getProperty("String_Node_Str");
      path=path.replace(username,"String_Node_Str");
      return path;
    }
  }
);
  CrashReportCategory state=report.makeCategoryDepth("String_Node_Str",stSize);
  state.addCrashSection("String_Node_Str",minecraft);
  state.addCrashSection("String_Node_Str",worldClient);
  state.addCrashSection("String_Node_Str",networkManager);
  state.addCrashSection("String_Node_Str",thePlayer);
  state.addCrashSection("String_Node_Str",windowContainer);
  state.addCrashSection("String_Node_Str",lastClickedBlock);
  state.addCrashSection("String_Node_Str",lastEntity);
  state.addCrashSection("String_Node_Str",saveHandler);
  state.addCrashSection("String_Node_Str",chunkLoader);
  state.addCrashSection("String_Node_Str",newTileEntities);
  state.addCrashSection("String_Node_Str",newEntities);
  state.addCrashSection("String_Node_Str",newMapDatas);
  state.addCrashSection("String_Node_Str",downloading);
  state.addCrashSection("String_Node_Str",isMultiworld);
  state.addCrashSection("String_Node_Str",propsFound);
  state.addCrashSection("String_Node_Str",startOnChange);
  state.addCrashSection("String_Node_Str",overrideLastModifiedCheck);
  state.addCrashSection("String_Node_Str",saving);
  state.addCrashSection("String_Node_Str",worldLoadingDeferred);
  state.addCrashSection("String_Node_Str",worldName);
  state.addCrashSection("String_Node_Str",baseFolderName);
  CrashReportCategory base=report.makeCategoryDepth("String_Node_Str",stSize);
  if (baseProps != null) {
    if (!baseProps.isEmpty()) {
      for (      Map.Entry<Object,Object> e : baseProps.entrySet()) {
        if (!(e.getKey() instanceof String)) {
          logger.warn("String_Node_Str" + e.getKey() + "String_Node_Str");
          continue;
        }
        base.addCrashSection((String)e.getKey(),e.getValue());
      }
    }
 else {
      base.addCrashSection("String_Node_Str","String_Node_Str");
    }
  }
 else {
    base.addCrashSection("String_Node_Str","String_Node_Str");
  }
  CrashReportCategory world=report.makeCategoryDepth("String_Node_Str",stSize);
  if (worldProps != null) {
    if (!worldProps.isEmpty()) {
      for (      Map.Entry<Object,Object> e : worldProps.entrySet()) {
        if (!(e.getKey() instanceof String)) {
          logger.warn("String_Node_Str" + e.getKey() + "String_Node_Str");
          continue;
        }
        world.addCrashSection((String)e.getKey(),e.getValue());
      }
    }
 else {
      world.addCrashSection("String_Node_Str","String_Node_Str");
    }
  }
 else {
    world.addCrashSection("String_Node_Str","String_Node_Str");
  }
  CrashReportCategory global=report.makeCategoryDepth("String_Node_Str",stSize);
  if (globalProps != null) {
    if (!globalProps.isEmpty()) {
      for (      Map.Entry<Object,Object> e : globalProps.entrySet()) {
        if (!(e.getKey() instanceof String)) {
          logger.warn("String_Node_Str" + e.getKey() + "String_Node_Str");
          continue;
        }
        global.addCrashSection((String)e.getKey(),e.getValue());
      }
    }
 else {
      global.addCrashSection("String_Node_Str","String_Node_Str");
    }
  }
 else {
    global.addCrashSection("String_Node_Str","String_Node_Str");
  }
}