From: jprocter Date: Tue, 11 Dec 2012 17:27:25 +0000 (+0000) Subject: JAL-1217 report exception for service when no datastore can be created X-Git-Tag: Release_2_8_0b1~1^2~74 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8364d3900ad4271d460ae15a245add45c66c2e89;p=jalview.git JAL-1217 report exception for service when no datastore can be created --- diff --git a/src/jalview/ws/jws2/Jws2Discoverer.java b/src/jalview/ws/jws2/Jws2Discoverer.java index 1a21fea..99a1726 100644 --- a/src/jalview/ws/jws2/Jws2Discoverer.java +++ b/src/jalview/ws/jws2/Jws2Discoverer.java @@ -250,7 +250,11 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI services.add(service); // retrieve the presets and parameter set and cache now - service.getParamStore().getPresets(); + ParamDataStoreI pds = service.getParamStore(); + if (pds != null) + { + pds.getPresets(); + } service.hasParameters(); if (validServiceUrls == null) { diff --git a/src/jalview/ws/jws2/jabaws2/Jws2Instance.java b/src/jalview/ws/jws2/jabaws2/Jws2Instance.java index 09f4a48..aa42ff7 100644 --- a/src/jalview/ws/jws2/jabaws2/Jws2Instance.java +++ b/src/jalview/ws/jws2/jabaws2/Jws2Instance.java @@ -173,6 +173,8 @@ public class Jws2Instance : null)); } catch (Exception ex) { + System.err.println("Unexpected exception creating JabaParamStore."); + ex.printStackTrace(); } }