Program: 72952
Project: 72952
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);
  String logFile=(String)params.get("String_Node_Str");
  if (logFile != null)   config.setLogFile(logFile.trim());
  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());
  String scripts=(String)params.get("String_Node_Str");
  HashMap map=new HashMap();
  map.put(EngineConstants.PROJECT_CLASSPATH_KEY,scripts);
  config.setAppContext(map);
  return config;
}