From f69cbcaf96076a079dac381630cfd9734c31d114 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 30 Jul 2007 14:17:24 +0000 Subject: [PATCH] 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 --- src/uk/ac/vamsas/client/simpleclient/FileLock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.2