Program: 188289
Project: 188289
Buggy source:
private void reindexActionLogs(IndexService index,ModelService model,Report report,Job job,SimpleJobPluginInfo jobPluginInfo){
  report.setPluginState(PluginState.SUCCESS);
  int i=0;
  for (  OptionalWithCause<LogEntry> logEntry : model.listLogEntries(dontReindexOlderThanXDays)) {
    jobPluginInfo.incrementObjectsCount();
    i++;
    if (logEntry.isPresent()) {
      index.reindexActionLog(logEntry.get());
      jobPluginInfo.incrementObjectsProcessedWithSuccess();
    }
 else {
      jobPluginInfo.incrementObjectsProcessedWithFailure();
      Report reportItem=PluginHelper.initPluginReportItem(this,"String_Node_Str",LogEntry.class);
      StringBuilder message=new StringBuilder("String_Node_Str");
      if (logEntry.getCause() instanceof LogEntryJsonParseException) {
        LogEntryJsonParseException cause=(LogEntryJsonParseException)logEntry.getCause();
        message.append("String_Node_Str" + cause.getFilename() + "String_Node_Str"+ cause.getLine());
        if (cause.getCause() != null) {
          message.append("String_Node_Str" + cause.getCause().getCause().getClass().getSimpleName() + "String_Node_Str"+ cause.getCause().getCause().getMessage());
        }
      }
 else {
        RODAException cause=logEntry.getCause();
        message.append("String_Node_Str" + cause.getClass().getSimpleName() + "String_Node_Str"+ cause.getMessage());
        if (cause.getCause() != null) {
          message.append("String_Node_Str" + cause.getCause().getClass().getSimpleName() + "String_Node_Str"+ cause.getCause().getMessage());
        }
      }
      reportItem.setPluginState(PluginState.FAILURE).setPluginDetails(message.toString());
      report.addReport(reportItem);
      PluginHelper.updatePartialJobReport(this,model,reportItem,false,job);
    }
  }
}

Fixed version (ground truth):
private void reindexActionLogs(IndexService index,ModelService model,Report report,Job job,SimpleJobPluginInfo jobPluginInfo){
  report.setPluginState(PluginState.SUCCESS);
  for (  OptionalWithCause<LogEntry> logEntry : model.listLogEntries(dontReindexOlderThanXDays)) {
    jobPluginInfo.incrementObjectsCount();
    if (logEntry.isPresent()) {
      index.reindexActionLog(logEntry.get());
      jobPluginInfo.incrementObjectsProcessedWithSuccess();
    }
 else {
      jobPluginInfo.incrementObjectsProcessedWithFailure();
      String id;
      StringBuilder message=new StringBuilder("String_Node_Str");
      if (logEntry.getCause() instanceof LogEntryJsonParseException) {
        LogEntryJsonParseException cause=(LogEntryJsonParseException)logEntry.getCause();
        id=IdUtils.createUUID(cause.getFilename() + cause.getLine());
        message.append("String_Node_Str" + cause.getFilename() + "String_Node_Str"+ cause.getLine());
        if (cause.getCause() != null) {
          message.append("String_Node_Str" + cause.getCause().getCause().getClass().getSimpleName() + "String_Node_Str"+ cause.getCause().getCause().getMessage());
        }
      }
 else {
        id=IdUtils.createUUID();
        RODAException cause=logEntry.getCause();
        message.append("String_Node_Str" + cause.getClass().getSimpleName() + "String_Node_Str"+ cause.getMessage());
        if (cause.getCause() != null) {
          message.append("String_Node_Str" + cause.getCause().getClass().getSimpleName() + "String_Node_Str"+ cause.getCause().getMessage());
        }
      }
      Report reportItem=PluginHelper.initPluginReportItem(this,id,LogEntry.class);
      reportItem.setPluginState(PluginState.FAILURE).setPluginDetails(message.toString());
      report.addReport(reportItem);
      PluginHelper.updatePartialJobReport(this,model,reportItem,false,job);
    }
  }
}