From: jprocter Date: Tue, 11 Dec 2012 17:27:39 +0000 (+0000) Subject: JAL-1217 check and avoid NPE if no datastore object instantiated X-Git-Tag: Release_2_8_0b1~1^2~73 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c330d4dad8fc78c8ec1d5c35e5fc137836c9776d;p=jalview.git JAL-1217 check and avoid NPE if no datastore object instantiated --- diff --git a/src/jalview/ws/jws2/Jws2Discoverer.java b/src/jalview/ws/jws2/Jws2Discoverer.java index 99a1726..8ad14e0 100644 --- a/src/jalview/ws/jws2/Jws2Discoverer.java +++ b/src/jalview/ws/jws2/Jws2Discoverer.java @@ -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();