From ab92d7c2f18178bc4ab6584c8dfe657a68e70693 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 18 Jul 2008 12:29:54 +0000 Subject: [PATCH] prevent exception when no default timeout is specified --- src/jalview/bin/Cache.java | 6 ++++++ 1 file changed, 6 insertions(+) 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"); } -- 1.7.10.2