portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/om/registry/base BasePortletInfoEntry.java
Date Sat, 01 Jun 2002 20:22:57 GMT
paulsp      2002/06/01 13:22:57

  Modified:    src/java/org/apache/jetspeed/om/registry/base Tag:
                        security_14 BasePortletInfoEntry.java
  Log:
  Add parameter no longer fails when adding the first parameter.  Previously
  it failed with a NullPointerException
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +7 -1      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.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- BasePortletInfoEntry.java	26 Mar 2002 09:06:53 -0000	1.2
  +++ BasePortletInfoEntry.java	1 Jun 2002 20:22:57 -0000	1.2.2.1
  @@ -69,7 +69,7 @@
    * 
    * @see org.apache.jetspeed.om.registry.PortletInfoEntry
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  - * @version $Id: BasePortletInfoEntry.java,v 1.2 2002/03/26 09:06:53 taylor Exp $
  + * @version $Id: BasePortletInfoEntry.java,v 1.2.2.1 2002/06/01 20:22:57 paulsp Exp $
    */
   public abstract class BasePortletInfoEntry extends BaseRegistryEntry
   {
  @@ -193,6 +193,12 @@
       {
           synchronized (parameter)
           {
  +            if (parameter == null)
  +                parameter = new Vector();
  +            
  +            if (nameIdx == null)
  +                buildNameIndex();
  +
               parameter.addElement( param );
               nameIdx.put( param.getName(), new Integer( parameter.size()-1 ) );
           }
  
  
  

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


Mime
View raw message