From: jprocter Date: Mon, 30 Jul 2007 14:17:24 +0000 (+0000) Subject: null pointer exception on attempt to release lock explicitly. X-Git-Tag: Release_0.2~94 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f69cbcaf96076a079dac381630cfd9734c31d114;p=vamsas.git null pointer exception on attempt to release lock explicitly. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@426 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/client/simpleclient/FileLock.java b/src/uk/ac/vamsas/client/simpleclient/FileLock.java index 3db6774..9201702 100644 --- a/src/uk/ac/vamsas/client/simpleclient/FileLock.java +++ b/src/uk/ac/vamsas/client/simpleclient/FileLock.java @@ -49,8 +49,8 @@ public class FileLock extends Lock { private void tidy() { if (_lock!=null) { if ( advisory!=null) { + advisory.target.deleteOnExit(); // release will null the target advisory.release(true); - advisory.target.deleteOnExit(); } advisory=null; _lock=null;