[Webfunds-commits] java/webfunds/client/sox SOXServerStore.java

Ian Grigg iang@cypherpunks.ai
Thu, 13 Jul 2000 19:29:31 -0400 (AST)


iang        00/07/13 19:29:31

  Modified:    webfunds/client/sox SOXServerStore.java
  Log:
  throw Ex if Issuer requested of unknown contract

Revision  Changes    Path
1.10      +7 -1      java/webfunds/client/sox/SOXServerStore.java

Index: SOXServerStore.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/sox/SOXServerStore.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- SOXServerStore.java	2000/07/13 17:46:43	1.9
+++ SOXServerStore.java	2000/07/13 23:29:31	1.10
@@ -1,5 +1,5 @@
 /*
- * $Id: SOXServerStore.java,v 1.9 2000/07/13 17:46:43 iang Exp $
+ * $Id: SOXServerStore.java,v 1.10 2000/07/13 23:29:31 iang Exp $
  *
  * Copyright (c) 1995-2000 Systemics Inc. on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -66,10 +66,16 @@
 
 
 
+    /**
+     *  @return the Issuer for this contract
+     *  @except SOXIssuerException if the id does not result in an Issuer
+     */
     public Issuer getIssuer(ItemId id)
         throws SOXIssuerException, SOXLaterException
     {
         Contract con = contracts.getContract(id);
+        if (con == null)
+            throw new SOXIssuerException("no contract available for " + id);
         logmsg("Obtained contract: " + con);
         return getIssuer(con) ;
     }