null pointer exception on attempt to release lock explicitly.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 30 Jul 2007 14:17:24 +0000 (14:17 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 30 Jul 2007 14:17:24 +0000 (14:17 +0000)
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

index 3db6774..9201702 100644 (file)
@@ -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;