From 8364d3900ad4271d460ae15a245add45c66c2e89 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 11 Dec 2012 17:27:25 +0000 Subject: [PATCH] JAL-1217 report exception for service when no datastore can be created --- src/jalview/ws/jws2/Jws2Discoverer.java | 6 +++++- src/jalview/ws/jws2/jabaws2/Jws2Instance.java | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) 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(); } } -- 1.7.10.2