portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dettb...@apache.org
Subject svn commit: r574007 - /portals/pluto/branches/1.1-286-COMPATIBILITY/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletConfigImpl.java
Date Sun, 09 Sep 2007 12:33:46 GMT
Author: dettborn
Date: Sun Sep  9 05:33:45 2007
New Revision: 574007

URL: http://svn.apache.org/viewvc?rev=574007&view=rev
Log:
Committed patch: PortletConfig_090907.patch from JIRA 430 (http://issues.apache.org/jira/browse/PLUTO-430).

Modified:
    portals/pluto/branches/1.1-286-COMPATIBILITY/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletConfigImpl.java

Modified: portals/pluto/branches/1.1-286-COMPATIBILITY/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletConfigImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/1.1-286-COMPATIBILITY/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletConfigImpl.java?rev=574007&r1=574006&r2=574007&view=diff
==============================================================================
--- portals/pluto/branches/1.1-286-COMPATIBILITY/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletConfigImpl.java
(original)
+++ portals/pluto/branches/1.1-286-COMPATIBILITY/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletConfigImpl.java
Sun Sep  9 05:33:45 2007
@@ -137,7 +137,7 @@
 		if (portletDD.getPublicRenderParameter() != null){
 			return Collections.enumeration(portletDD.getPublicRenderParameter());
 		}
-		return null;
+		return  Collections.enumeration(new ArrayList<String>());
 	}
 
 	public String getDefaultNamespace() {
@@ -148,13 +148,13 @@
 		
 		return (portletDD.getProcessingEvents() != null) ? 
 				Collections.enumeration(portletDD.getProcessingEvents()) :
-					null;
+					Collections.enumeration(new ArrayList<QName>());
 	}
 
 	public Enumeration<QName> getPublishingEventQNames() {
 		return (portletDD.getPublishingEvents() != null) ?
 				Collections.enumeration(portletDD.getPublishingEvents()) :
-					null;
+					Collections.enumeration(new ArrayList<QName>());
 	}
 
 	public Enumeration<Locale> getSupportedLocales() {
@@ -162,8 +162,10 @@
 		// add an entry in the resut list (new Locale(string))
 		List<Locale> locals = new ArrayList<Locale>();
 		List<String> localsAsStrings = portletDD.getSupportedLocale();
-		for (String string : localsAsStrings) {
-			locals.add(new Locale(string));
+		if (localsAsStrings!=null){
+			for (String string : localsAsStrings) {
+				locals.add(new Locale(string));
+			}
 		}
 		return Collections.enumeration(locals);
 	}



Mime
View raw message