From: jprocter Date: Thu, 15 Mar 2007 14:44:03 +0000 (+0000) Subject: occasional null pointer exception X-Git-Tag: Release_0.2~161 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9c98288bf03cc32d5f37e7a72fbfbc4c60b65c5b;p=vamsas.git occasional null pointer exception git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@359 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 c069d95..3db6774 100644 --- a/src/uk/ac/vamsas/client/simpleclient/FileLock.java +++ b/src/uk/ac/vamsas/client/simpleclient/FileLock.java @@ -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