Program: 130648
Project: 130648
Buggy source:
public void setDefaults(ILaunchConfigurationWorkingCopy configuration){
  IJavaElement javaElement=getContext();
  if (javaElement != null) {
    initializeJavaProject(javaElement,configuration);
  }
 else {
    configuration.setAttribute(ATTR_PROJECT_NAME,"String_Node_Str");
  }
  JettyPluginConstants.setClasspathProvider(configuration,JettyPluginConstants.CLASSPATH_PROVIDER_JETTY);
  String projectName="String_Node_Str";
  try {
    projectName=configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,"String_Node_Str");
  }
 catch (  CoreException e) {
  }
  String launchConfigName=projectName;
  if ((launchConfigName == null) || (launchConfigName.length() == 0)) {
    launchConfigName="String_Node_Str";
  }
  launchConfigName=getLaunchConfigurationDialog().generateName(launchConfigName);
  configuration.rename(launchConfigName);
  try {
    String webAppDir="String_Node_Str";
    if (projectName.length() > 0) {
      IResource resource=findWebappDir(ResourcesPlugin.getWorkspace().getRoot().getProject(projectName));
      if (resource != null) {
        webAppDir=getWebappText(resource);
      }
    }
    JettyPluginConstants.setWebAppDir(configuration,webAppDir);
    JettyPluginConstants.setContext(configuration,JettyPluginConstants.getContext(configuration));
    JettyPluginConstants.setPort(configuration,JettyPluginConstants.getPort(configuration));
    JettyPluginConstants.setConfigs(configuration,JettyPluginConstants.getConfigs(configuration));
  }
 catch (  CoreException e) {
    JettyPlugin.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
public void setDefaults(ILaunchConfigurationWorkingCopy configuration){
  IJavaElement javaElement=getContext();
  if (javaElement != null) {
    initializeJavaProject(javaElement,configuration);
  }
 else {
    configuration.setAttribute(ATTR_PROJECT_NAME,"String_Node_Str");
  }
  JettyPluginConstants.setClasspathProvider(configuration,JettyPluginConstants.CLASSPATH_PROVIDER_JETTY);
  String projectName="String_Node_Str";
  try {
    projectName=configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,"String_Node_Str");
  }
 catch (  CoreException e) {
  }
  String launchConfigName=projectName;
  if ((launchConfigName == null) || (launchConfigName.length() == 0)) {
    launchConfigName="String_Node_Str";
  }
  launchConfigName=getLaunchConfigurationDialog().generateName(launchConfigName);
  configuration.rename(launchConfigName);
  try {
    String webAppDir="String_Node_Str";
    if ((projectName != null) && (projectName.length() > 0)) {
      IResource resource=findWebappDir(ResourcesPlugin.getWorkspace().getRoot().getProject(projectName));
      if (resource != null) {
        webAppDir=getWebappText(resource);
      }
    }
    JettyPluginConstants.setWebAppDir(configuration,webAppDir);
    JettyPluginConstants.setContext(configuration,JettyPluginConstants.getContext(configuration));
    JettyPluginConstants.setPort(configuration,JettyPluginConstants.getPort(configuration));
    JettyPluginConstants.setConfigs(configuration,JettyPluginConstants.getConfigs(configuration));
  }
 catch (  CoreException e) {
    JettyPlugin.error("String_Node_Str",e);
  }
}