portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r757573 - /portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/container/impl/PortletRequestImpl.java
Date Mon, 23 Mar 2009 22:19:49 GMT
Author: ate
Date: Mon Mar 23 22:19:48 2009
New Revision: 757573

URL: http://svn.apache.org/viewvc?rev=757573&view=rev
Log:
Fix provided by Ussama Baggili for PLUTO-541- locale retrieval from PortletRequestImpl throws
NoSuchElement Exception
Thanks Ussama.

Modified:
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/container/impl/PortletRequestImpl.java

Modified: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/container/impl/PortletRequestImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/container/impl/PortletRequestImpl.java?rev=757573&r1=757572&r2=757573&view=diff
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/container/impl/PortletRequestImpl.java
(original)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/container/impl/PortletRequestImpl.java
Mon Mar 23 22:19:48 2009
@@ -349,7 +349,7 @@
             Locale locale = (Locale)e.nextElement();
             if (!locale.equals(preferredLocale))
             {
-                locales.add((Locale)e.nextElement());
+                locales.add(locale);
             }
         }
         return Collections.enumeration(locales);
@@ -518,7 +518,7 @@
                 Locale locale = (Locale)e.nextElement();
                 if (!locale.equals(preferredLocale))
                 {
-                    locales.add(e.nextElement().toString());
+                    locales.add(locale.toString());
                 }
             }
             return Collections.enumeration(locales);



Mime
View raw message