juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svi...@apache.org
Subject cvs commit: ws-juddi/src/java/org/apache/juddi/i18n RegistryResourceBundle.java
Date Mon, 21 Mar 2005 01:06:06 GMT
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);
     }
     
  
  
  

Mime
View raw message