JAL-1217 report exception for service when no datastore can be created
[jalview.git] / src / jalview / ws / jws2 / Jws2Discoverer.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)
     {