portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/portal BasePortletSet.java
Date Tue, 03 Jun 2003 17:10:00 GMT
weaver      2003/06/03 10:10:00

  Modified:    src/java/org/apache/jetspeed/portal BasePortletSet.java
  Log:
  Fixes issues with invlaid configuration in PSML causing ArrayIndexOutOfBounds exceptions.
  
  Revision  Changes    Path
  1.31      +2 -2      jakarta-jetspeed/src/java/org/apache/jetspeed/portal/BasePortletSet.java
  
  Index: BasePortletSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/BasePortletSet.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- BasePortletSet.java	7 May 2003 15:16:49 -0000	1.30
  +++ BasePortletSet.java	3 Jun 2003 17:10:00 -0000	1.31
  @@ -601,7 +601,7 @@
                   
                   Portlet p = (Portlet) portlets.elementAt(i);
                   int pos = p.getPortletConfig().getPosition();
  -                if ((pos >= 0) && (pos != i))
  +                if ((pos >= 0) && (pos != i) && pos < portlets.size())
                   {
                       portlets.removeElementAt(i);
                       portlets.insertElementAt(p, pos);
  
  
  

---------------------------------------------------------------------
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