occasional null pointer exception
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 15 Mar 2007 14:44:03 +0000 (14:44 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 15 Mar 2007 14:44:03 +0000 (14:44 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@359 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/client/simpleclient/FileLock.java

index c069d95..3db6774 100644 (file)
@@ -40,7 +40,7 @@ public class FileLock extends Lock {
         throw new Error("Failed to create advisory lock file "+_lock);
       }
     }
-    return advisory.isLocked();
+    return (advisory!=null) && advisory.isLocked();
   }
   /**
    * call to clear up a filelock file after its been made