cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.0/src/java/org/apache/cocoon/webapps/portal/components PortalManager.java
Date Wed, 27 Aug 2003 09:09:20 GMT
cziegeler    2003/08/27 02:09:20

  Modified:    src/java/org/apache/cocoon/webapps/portal/components
                        PortalManager.java
  Log:
  Fixing classcast exception
  
  Revision  Changes    Path
  1.3       +7 -4      cocoon-2.0/src/java/org/apache/cocoon/webapps/portal/components/PortalManager.java
  
  Index: PortalManager.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/webapps/portal/components/PortalManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortalManager.java	30 Jul 2003 10:24:44 -0000	1.2
  +++ PortalManager.java	27 Aug 2003 09:09:20 -0000	1.3
  @@ -1856,9 +1856,12 @@
                   delete = this.getProfileID(PortalManager.BUILDTYPE_VALUE_GLOBAL, null,
null, false);
                   delete = delete.substring(1, delete.lastIndexOf(':') + 1);
                   while (keys.hasMoreElements() == true) {
  -                    currentKey = (String)keys.nextElement();
  -                    if (currentKey.startsWith(delete) == true) {
  -                        store.remove(currentKey);
  +                    Object k = keys.nextElement();
  +                    if ( k instanceof String ) {
  +                        currentKey = (String)k;
  +                        if (currentKey.startsWith(delete)) {
  +                            store.remove(currentKey);
  +                        }
                       }
                   }
               }
  
  
  

Mime
View raw message