JAL-1217 check and avoid NPE if no datastore object instantiated
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 11 Dec 2012 17:27:39 +0000 (17:27 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 11 Dec 2012 17:27:39 +0000 (17:27 +0000)
src/jalview/ws/jws2/Jws2Discoverer.java

index 99a1726..8ad14e0 100644 (file)
@@ -23,6 +23,7 @@ import jalview.gui.Desktop;
 import jalview.gui.JvSwingUtils;
 import jalview.ws.WSMenuEntryProviderI;
 import jalview.ws.jws2.jabaws2.Jws2Instance;
+import jalview.ws.params.ParamDatastoreI;
 
 import java.awt.Color;
 import java.awt.event.ActionEvent;
@@ -250,7 +251,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI
 
     services.add(service);
     // retrieve the presets and parameter set and cache now
-    ParamDataStoreI pds = service.getParamStore();
+    ParamDatastoreI pds = service.getParamStore();
     if (pds != null)
     {
       pds.getPresets();