portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/om/registry/base BasePortletInfoEntry.java
Date Mon, 29 Mar 2004 19:28:25 GMT
jford       2004/03/29 11:28:25

  Modified:    src/java/org/apache/jetspeed/om/registry/base
                        BasePortletInfoEntry.java
  Log:
  Prevent NPE if key or value is null
  
  Revision  Changes    Path
  1.9       +7 -2      jakarta-jetspeed/src/java/org/apache/jetspeed/om/registry/base/BasePortletInfoEntry.java
  
  Index: BasePortletInfoEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/om/registry/base/BasePortletInfoEntry.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- BasePortletInfoEntry.java	23 Feb 2004 03:08:26 -0000	1.8
  +++ BasePortletInfoEntry.java	29 Mar 2004 19:28:24 -0000	1.9
  @@ -233,7 +233,12 @@
           while(en.hasMoreElements())
           {
               Parameter param = (Parameter)en.nextElement();
  -            params.put(param.getName(),param.getValue());
  +            String key = param.getName();
  +            String value = param.getValue();
  +            if(key != null && value != null)
  +            {
  +            	params.put(key, value);
  +            }
           }
           return params;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message