From: jprocter Date: Fri, 18 Jul 2008 12:29:54 +0000 (+0000) Subject: prevent exception when no default timeout is specified X-Git-Tag: Release_2_4~86 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;ds=inline;h=ab92d7c2f18178bc4ab6584c8dfe657a68e70693;hp=4abf93c290b4ecdf03f81786a98de0287fd2239f;p=jalview.git prevent exception when no default timeout is specified --- diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index aed61f2..0744cd9 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -239,6 +239,11 @@ public class Cache public void run() { String orgtimeout = System.getProperty("sun.net.client.defaultConnectTimeout"); + if (orgtimeout==null) + { + orgtimeout="30"; + System.out.println("# INFO: Setting default net timeout to "+orgtimeout+" seconds."); + } String jnlpVersion = null; try { @@ -263,6 +268,7 @@ public class Cache } catch (Exception ex) { + System.out.println("Non-fatal exceptions when checking version at www.jalview.org :"); System.out.println(ex); jnlpVersion = getProperty("VERSION"); }