From: jprocter Date: Thu, 4 Dec 2008 10:21:46 +0000 (+0000) Subject: fix null pointer exception for sources which don't have any additional properties X-Git-Tag: Release_2_5~396 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=769b5ceb2eeb6d016b87f2605622c858ba913eea;p=jalview.git fix null pointer exception for sources which don't have any additional properties --- diff --git a/src/jalview/ws/seqfetcher/DbSourceProxyImpl.java b/src/jalview/ws/seqfetcher/DbSourceProxyImpl.java index 10aaf7d..e3f5664 100644 --- a/src/jalview/ws/seqfetcher/DbSourceProxyImpl.java +++ b/src/jalview/ws/seqfetcher/DbSourceProxyImpl.java @@ -47,6 +47,10 @@ public abstract class DbSourceProxyImpl implements DbSourceProxy */ public Hashtable getDbSourceProperties() { + if (props==null) + { + props = new Hashtable(); + } return props; }