From: Jim Procter Date: Wed, 19 Jun 2013 16:41:27 +0000 (+0100) Subject: JAL-1240 avoid NPE when source has no proxy available X-Git-Tag: Jalview_2_9~235^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=67bb04bf601a6f5bc2bf2d568a1bd73a8656072a;p=jalview.git JAL-1240 avoid NPE when source has no proxy available --- diff --git a/src/jalview/ws/DBRefFetcher.java b/src/jalview/ws/DBRefFetcher.java index a55658b..17c1bc9 100644 --- a/src/jalview/ws/DBRefFetcher.java +++ b/src/jalview/ws/DBRefFetcher.java @@ -136,10 +136,13 @@ public class DBRefFetcher implements Runnable { jalviewSourceI src = en.nextElement(); List sp = src.getSequenceSourceProxies(); - selsources.addAll(sp); - if (sp.size() > 1) + if (sp != null) { - Cache.log.debug("Added many Db Sources for :" + src.getTitle()); + selsources.addAll(sp); + if (sp.size() > 1) + { + Cache.log.debug("Added many Db Sources for :" + src.getTitle()); + } } } // select appropriate databases based on alignFrame context.