Program: 73702
Project: 73702
Buggy source:
/** 
 * new a EngineConfig and config it with user's setting
 */
protected EngineConfig createEngineConfig(){
  EngineConfig config=new EngineConfig();
  String resourcePath=(String)params.get("String_Node_Str");
  if (resourcePath != null)   config.setResourcePath(resourcePath.trim());
  String tempDir=(String)params.get("String_Node_Str");
  if (tempDir != null)   config.setTempDir(tempDir.trim());
  String logDir=(String)params.get("String_Node_Str");
  String logLevel=(String)params.get("String_Node_Str");
  Level level=null;
  if (logLevel != null) {
    logLevel=logLevel.trim();
    if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.ALL;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.CONFIG;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.FINE;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.FINER;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.FINEST;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.INFO;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.OFF;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.SEVERE;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.WARNING;
    }
  }
  String logD=(logDir == null) ? config.getLogDirectory() : logDir;
  Level logL=(level == null) ? config.getLogLevel() : level;
  config.setLogConfig(logD,logL);
  return config;
}

Fixed version (ground truth):
/** 
 * new a EngineConfig and config it with user's setting
 */
protected EngineConfig createEngineConfig(){
  EngineConfig config=new EngineConfig();
  String resourcePath=(String)params.get("String_Node_Str");
  if (resourcePath != null)   config.setResourcePath(resourcePath.trim());
  String tempDir=(String)params.get("String_Node_Str");
  if (tempDir != null)   config.setTempDir(tempDir.trim());
  String logDir=(String)params.get("String_Node_Str");
  String logLevel=(String)params.get("String_Node_Str");
  Level level=null;
  if (logLevel != null) {
    logLevel=logLevel.trim();
    if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.ALL;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.CONFIG;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.FINE;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.FINER;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.FINEST;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.INFO;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.OFF;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.SEVERE;
    }
 else     if ("String_Node_Str".equalsIgnoreCase(logLevel)) {
      level=Level.WARNING;
    }
  }
  String logD=(logDir == null) ? config.getLogDirectory() : logDir;
  Level logL=(level == null) ? config.getLogLevel() : level;
  config.setLogConfig(logD,logL);
  String logFile=(String)params.get("String_Node_Str");
  if (logFile != null)   config.setLogFile(logFile.trim());
  return config;
}