Program: 96503
Project: 96503
Buggy source:
private void createBundleProjectDescription(IProject project,OSGiBundleFacetInstallConfig config,IProgressMonitor monitor) throws CoreException {
  IBundleProjectService bundleProjectService=Activator.getDefault().getBundleProjectService();
  IBundleProjectDescription bundleProjectDescription=bundleProjectService.getDescription(project);
  bundleProjectDescription.setSymbolicName(config.getSymbolicName());
  bundleProjectDescription.setBundleVersion(config.getVersion());
  String bundleName=config.getName();
  if (bundleName != null && bundleName.trim().length() > 0) {
    bundleProjectDescription.setBundleName(bundleName);
  }
  String bundleVendor=config.getVendor();
  if (bundleVendor != null && bundleVendor.trim().length() > 0) {
    bundleProjectDescription.setBundleVendor(bundleVendor);
  }
  bundleProjectDescription.setEquinox(true);
  bundleProjectDescription.setExtensionRegistry(false);
  bundleProjectDescription.setNatureIds(getNatureIds(bundleProjectDescription));
  bundleProjectDescription.setLaunchShortcuts(getLaunchShortcuts(project));
  Map<String,String> headers=getAdditionalHeaders(project);
  for (  String header : headers.keySet()) {
    bundleProjectDescription.setHeader(header,headers.get(header));
  }
  bundleProjectDescription.setPackageExports(getPackageExports(project));
  bundleProjectDescription.setPackageImports(getPackageImports(bundleProjectDescription));
  bundleProjectDescription.setBinIncludes(getBinIncludes(bundleProjectDescription));
  bundleProjectDescription.setBundleClassath(getBundleClasspath(bundleProjectDescription));
  bundleProjectDescription.apply(monitor);
}

Fixed version (ground truth):
private void createBundleProjectDescription(IProject project,OSGiBundleFacetInstallConfig config,IProgressMonitor monitor) throws CoreException {
  IBundleProjectService bundleProjectService=Activator.getDefault().getBundleProjectService();
  IBundleProjectDescription bundleProjectDescription=bundleProjectService.getDescription(project);
  bundleProjectDescription.setSymbolicName(config.getSymbolicName());
  bundleProjectDescription.setBundleVersion(config.getVersion());
  String bundleName=config.getName();
  if (bundleName != null && bundleName.trim().length() > 0) {
    bundleProjectDescription.setBundleName(bundleName);
  }
  String bundleVendor=config.getVendor();
  if (bundleVendor != null && bundleVendor.trim().length() > 0) {
    bundleProjectDescription.setBundleVendor(bundleVendor);
  }
  bundleProjectDescription.setEquinox(true);
  bundleProjectDescription.setExtensionRegistry(false);
  bundleProjectDescription.setNatureIds(getNatureIds(bundleProjectDescription));
  bundleProjectDescription.setLaunchShortcuts(getLaunchShortcuts(project));
  Map<String,String> headers=getAdditionalHeaders(project);
  for (  Map.Entry<String,String> entry : headers.entrySet()) {
    bundleProjectDescription.setHeader(entry.getKey(),entry.getValue());
  }
  bundleProjectDescription.setPackageExports(getPackageExports(project));
  bundleProjectDescription.setPackageImports(getPackageImports(bundleProjectDescription));
  bundleProjectDescription.setBinIncludes(getBinIncludes(bundleProjectDescription));
  bundleProjectDescription.setBundleClassath(getBundleClasspath(bundleProjectDescription));
  bundleProjectDescription.apply(monitor);
}