Program: 47354
Project: 47354
Buggy source:
@Override public void importFile(IPlatformImportBundle bundle) throws PlatformImportException, DomainIdNullException, DomainAlreadyExistsException, DomainStorageException, IOException {
  InputStream inputStream=bundle.getInputStream();
  Path path=Files.createTempDirectory(METASTORE);
  path.toFile().deleteOnExit();
  ZipInputStream zis=new ZipInputStream(inputStream);
  ZipEntry entry;
  while ((entry=zis.getNextEntry()) != null) {
    try {
      String filePath=path.toString() + File.separator + entry.getName();
      if (entry.isDirectory()) {
        File dir=new File(filePath);
        dir.mkdir();
      }
 else {
        File file=new File(filePath);
        file.getParentFile().mkdirs();
        FileOutputStream fos=new FileOutputStream(filePath);
        IOUtils.copy(zis,fos);
        IOUtils.closeQuietly(fos);
      }
    }
  finally {
      zis.closeEntry();
    }
  }
  IOUtils.closeQuietly(zis);
  IMetaStore metastore=getRepoMetaStore();
  if (metastore != null) {
    try {
      if (tmpXmlMetaStore == null) {
        tmpXmlMetaStore=new XmlMetaStore(path.toString());
      }
      tmpXmlMetaStore.setName(bundle.getName());
      String desc=bundle.getProperty("String_Node_Str") == null ? null : bundle.getProperty("String_Node_Str").toString();
      tmpXmlMetaStore.setDescription(desc);
      MetaStoreUtil.copy(tmpXmlMetaStore,metastore,bundle.overwriteInRepository());
    }
 catch (    MetaStoreException e) {
      log.error("String_Node_Str");
      log.debug("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
@Override public void importFile(IPlatformImportBundle bundle) throws PlatformImportException, DomainIdNullException, DomainAlreadyExistsException, DomainStorageException, IOException {
  InputStream inputStream=bundle.getInputStream();
  Path path=Files.createTempDirectory(METASTORE);
  path.toFile().deleteOnExit();
  ZipInputStream zis=new ZipInputStream(inputStream);
  ZipEntry entry;
  while ((entry=zis.getNextEntry()) != null) {
    try {
      String filePath=path.toString() + File.separator + entry.getName();
      if (entry.isDirectory()) {
        File dir=new File(filePath);
        dir.mkdir();
      }
 else {
        File file=new File(filePath);
        file.getParentFile().mkdirs();
        FileOutputStream fos=new FileOutputStream(filePath);
        IOUtils.copy(zis,fos);
        IOUtils.closeQuietly(fos);
      }
    }
  finally {
      zis.closeEntry();
    }
  }
  IOUtils.closeQuietly(zis);
  IMetaStore metastore=getRepoMetaStore();
  if (metastore != null) {
    try {
      if (tmpXmlMetaStore == null) {
        tmpXmlMetaStore=new XmlMetaStore(path.toString());
      }
 else {
        tmpXmlMetaStore.setRootFolder(path.toString() + File.separator + METASTORE);
      }
      tmpXmlMetaStore.setName(bundle.getName());
      String desc=bundle.getProperty("String_Node_Str") == null ? null : bundle.getProperty("String_Node_Str").toString();
      tmpXmlMetaStore.setDescription(desc);
      MetaStoreUtil.copy(tmpXmlMetaStore,metastore,bundle.overwriteInRepository());
    }
 catch (    MetaStoreException e) {
      log.error("String_Node_Str");
      log.debug("String_Node_Str",e);
    }
  }
}