You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by sv...@apache.org on 2005/03/21 02:06:06 UTC

cvs commit: ws-juddi/src/java/org/apache/juddi/i18n RegistryResourceBundle.java

sviens      2005/03/20 17:06:06

  Modified:    src/java/org/apache/juddi/i18n RegistryResourceBundle.java
  Log:
  Change to getString to check for null before attempting to look up a message in the bundle.
  
  Revision  Changes    Path
  1.2       +2 -0      ws-juddi/src/java/org/apache/juddi/i18n/RegistryResourceBundle.java
  
  Index: RegistryResourceBundle.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/src/java/org/apache/juddi/i18n/RegistryResourceBundle.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RegistryResourceBundle.java	21 Mar 2005 00:21:57 -0000	1.1
  +++ RegistryResourceBundle.java	21 Mar 2005 01:06:06 -0000	1.2
  @@ -32,6 +32,8 @@
     
     public static String getString(String key)
     {
  +    if ((key == null) || (key.trim().length() == 0))
  +      return null;    
       return getBundle().getString(key);
     }