From: jprocter Date: Thu, 23 Mar 2006 14:13:46 +0000 (+0000) Subject: fixed exception when trying to cancel unwritten archives. X-Git-Tag: Release_0.2~316 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=55bbfdce1fb111507235850911f5dee151dce1fb;p=vamsas.git fixed exception when trying to cancel unwritten archives. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@204 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/org/vamsas/client/simpleclient/VamsasArchive.java b/src/org/vamsas/client/simpleclient/VamsasArchive.java index c58c5f3..ceaf401 100644 --- a/src/org/vamsas/client/simpleclient/VamsasArchive.java +++ b/src/org/vamsas/client/simpleclient/VamsasArchive.java @@ -294,6 +294,9 @@ public class VamsasArchive { public boolean cancelArchive() { if (newarchive!=null) { try { + newarchive.closeEntry(); + newarchive.putNextEntry(new JarEntry("deleted")); + newarchive.closeEntry(); newarchive.close(); } catch (Exception e) {