Program: 47346
Project: 47346
Buggy source:
/** 
 * Performs the export process, returns a zip File object
 * @throws ExportException indicates an error in import processing
 */
public File performExport(RepositoryFile exportRepositoryFile) throws ExportException, IOException {
  File exportFile=null;
  exportFile=File.createTempFile(EXPORT_TEMP_FILENAME_PREFIX,EXPORT_TEMP_FILENAME_EXT);
  exportFile.deleteOnExit();
  String filePath=new File(this.path).getParent();
  if (filePath == null) {
    filePath="String_Node_Str";
  }
  if (exportRepositoryFile == null) {
    throw new FileNotFoundException("String_Node_Str" + this.path);
  }
  ZipOutputStream zos=new ZipOutputStream(new FileOutputStream(exportFile));
  if (exportRepositoryFile.isFolder()) {
    exportManifest.getManifestInformation().setRootFolder(path.substring(0,path.lastIndexOf("String_Node_Str") + 1));
    if (!ClientRepositoryPaths.getRootFolderPath().equals(exportRepositoryFile.getPath())) {
      zos.putNextEntry(new ZipEntry(ExportFileNameEncoder.encodeZipPathName(getZipEntryName(exportRepositoryFile,filePath))));
    }
    exportDirectory(exportRepositoryFile,zos,filePath);
  }
 else {
    exportManifest.getManifestInformation().setRootFolder(path.substring(0,path.lastIndexOf("String_Node_Str") + 1));
    exportFile(exportRepositoryFile,zos,filePath);
  }
  if (this.withManifest) {
    ZipEntry entry=new ZipEntry(EXPORT_MANIFEST_FILENAME);
    zos.putNextEntry(entry);
    try {
      exportManifest.toXml(zos);
    }
 catch (    Exception e) {
      log.error("String_Node_Str");
    }
    zos.closeEntry();
  }
  zos.close();
  exportManifest=null;
  zos=null;
  return exportFile;
}

Fixed version (ground truth):
/** 
 * Performs the export process, returns a zip File object
 * @throws ExportException indicates an error in import processing
 */
public File performExport(RepositoryFile exportRepositoryFile) throws ExportException, IOException {
  File exportFile=null;
  exportFile=File.createTempFile(EXPORT_TEMP_FILENAME_PREFIX,EXPORT_TEMP_FILENAME_EXT);
  exportFile.deleteOnExit();
  String filePath=new File(this.path).getParent();
  if (filePath == null) {
    filePath="String_Node_Str";
  }
  if (exportRepositoryFile == null) {
    throw new FileNotFoundException("String_Node_Str" + this.path);
  }
  ZipOutputStream zos=new ZipOutputStream(new FileOutputStream(exportFile));
  if (exportRepositoryFile.isFolder()) {
    exportManifest.getManifestInformation().setRootFolder(path.substring(0,path.lastIndexOf("String_Node_Str") + 1));
    if (!ClientRepositoryPaths.getRootFolderPath().equals(exportRepositoryFile.getPath())) {
      zos.putNextEntry(new ZipEntry(getFixedZipEntryName(exportRepositoryFile,filePath)));
    }
    exportDirectory(exportRepositoryFile,zos,filePath);
  }
 else {
    exportManifest.getManifestInformation().setRootFolder(path.substring(0,path.lastIndexOf("String_Node_Str") + 1));
    exportFile(exportRepositoryFile,zos,filePath);
  }
  if (this.withManifest) {
    ZipEntry entry=new ZipEntry(EXPORT_MANIFEST_FILENAME);
    zos.putNextEntry(entry);
    try {
      exportManifest.toXml(zos);
    }
 catch (    Exception e) {
      log.error("String_Node_Str");
    }
    zos.closeEntry();
  }
  zos.close();
  exportManifest=null;
  zos=null;
  return exportFile;
}