From 769b5ceb2eeb6d016b87f2605622c858ba913eea Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 4 Dec 2008 10:21:46 +0000 Subject: [PATCH] fix null pointer exception for sources which don't have any additional properties --- src/jalview/ws/seqfetcher/DbSourceProxyImpl.java | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 1.7.10.2