JAL-1217 report exception for service when no datastore can be created
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 11 Dec 2012 17:27:25 +0000 (17:27 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 11 Dec 2012 17:27:25 +0000 (17:27 +0000)
src/jalview/ws/jws2/Jws2Discoverer.java
src/jalview/ws/jws2/jabaws2/Jws2Instance.java

index 1a21fea..99a1726 100644 (file)
@@ -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)
     {
index 09f4a48..aa42ff7 100644 (file)
@@ -173,6 +173,8 @@ public class Jws2Instance
                         : null));
       } catch (Exception ex)
       {
+        System.err.println("Unexpected exception creating JabaParamStore.");
+        ex.printStackTrace();
       }
 
     }