From c330d4dad8fc78c8ec1d5c35e5fc137836c9776d Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 11 Dec 2012 17:27:39 +0000 Subject: [PATCH] JAL-1217 check and avoid NPE if no datastore object instantiated --- src/jalview/ws/jws2/Jws2Discoverer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 1.7.10.2