Remove latestVersion if null
authoramwaterhouse <Andrew Waterhouse>
Wed, 28 Sep 2005 15:39:51 +0000 (15:39 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 28 Sep 2005 15:39:51 +0000 (15:39 +0000)
src/jalview/bin/Cache.java

index 0013c63..c6a517f 100755 (executable)
@@ -156,6 +156,7 @@ public class Cache
 \r
         System.out.println("Jalview Version: "+codeVersion);\r
 \r
+\r
         // jnlpVersion will be null if we're using InstallAnywhere\r
         // Dont do this check if running in headless mode\r
         if(jnlpVersion==null && (\r
@@ -163,7 +164,6 @@ public class Cache
              || System.getProperty("java.awt.headless").equals("false")))\r
         {\r
 \r
-\r
           class VersionChecker\r
               extends Thread\r
           {\r
@@ -203,7 +203,7 @@ public class Cache
         }\r
         else\r
         {\r
-          setProperty("LATEST_VERSION", jnlpVersion);\r
+          applicationProperties.remove("LATEST_VERSION");\r
         }\r
 \r
         setProperty("VERSION", codeVersion);\r