[Webfunds-commits] java/webfunds/ricardian DirContractStore.java

Ian Grigg iang@cypherpunks.ai
Sun, 17 Sep 2000 15:40:54 -0400 (AST)


iang        00/09/17 15:40:53

  Modified:    webfunds/ricardian DirContractStore.java
  Log:
  null unexpected as empty result...

Revision  Changes    Path
1.17      +4 -1      java/webfunds/ricardian/DirContractStore.java

Index: DirContractStore.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/ricardian/DirContractStore.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- DirContractStore.java	2000/04/22 17:50:30	1.16
+++ DirContractStore.java	2000/09/17 19:40:53	1.17
@@ -1,5 +1,5 @@
 /*
- * $Id: DirContractStore.java,v 1.16 2000/04/22 17:50:30 iang Exp $
+ * $Id: DirContractStore.java,v 1.17 2000/09/17 19:40:53 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -510,6 +510,9 @@
     public Contract[] getContractsByName(String name)
     {
         Hashtable nameHash = (Hashtable) allNames.get(name);
+        if (nameHash == null)
+            return new Contract[0];
+
         Contract[] cons = new Contract[nameHash.size()];
  
         Enumeration e = nameHash.keys();