cziegeler 2003/07/30 03:25:37
Modified: src/blocks/portal-fw/java/org/apache/cocoon/webapps/portal/components PortalManager.java Log: Applying patch for the "double-click" bug from Hartmut Zimmermann ([EMAIL PROTECTED]) Revision Changes Path 1.8 +13 -3 cocoon-2.1/src/blocks/portal-fw/java/org/apache/cocoon/webapps/portal/components/PortalManager.java Index: PortalManager.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/portal-fw/java/org/apache/cocoon/webapps/portal/components/PortalManager.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- PortalManager.java 18 Jun 2003 12:36:45 -0000 1.7 +++ PortalManager.java 30 Jul 2003 10:25:37 -0000 1.8 @@ -963,11 +963,21 @@ // LOAD COPLETS List[] copletContents; - copletContents = (List[])context.getAttribute(PortalConstants.ATTRIBUTE_COPLET_REPOSITORY); - if (copletContents == null) { + List[] temp = (List[])context.getAttribute(PortalConstants.ATTRIBUTE_COPLET_REPOSITORY); + if (temp != null) { + copletContents = new List[temp.length]; + for (int i = 0; i < temp.length; i++) { + if (temp[i] == null) { + copletContents[i] = null; + } else { + copletContents[i] = new ArrayList(temp[i]); + } + } + } else { copletContents = new List[PortalConstants.MAX_COLUMNS+2]; context.setAttribute(PortalConstants.ATTRIBUTE_COPLET_REPOSITORY, copletContents); } + if (copletContents[0] == null) { copletContents[0] = new ArrayList(1); } else {