fix null pointer exception for sources which don't have any additional properties
authorjprocter <Jim Procter>
Thu, 4 Dec 2008 10:21:46 +0000 (10:21 +0000)
committerjprocter <Jim Procter>
Thu, 4 Dec 2008 10:21:46 +0000 (10:21 +0000)
src/jalview/ws/seqfetcher/DbSourceProxyImpl.java

index 10aaf7d..e3f5664 100644 (file)
@@ -47,6 +47,10 @@ public abstract class DbSourceProxyImpl implements DbSourceProxy
    */\r
   public Hashtable getDbSourceProperties()\r
   {\r
+    if (props==null)\r
+    {\r
+      props = new Hashtable();\r
+    }\r
     return props;\r
   }\r
 \r