portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r331628 - /portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/container/JetspeedPortletConfig.java
Date Mon, 07 Nov 2005 22:37:42 GMT
Author: ate
Date: Mon Nov  7 14:37:34 2005
New Revision: 331628

URL: http://svn.apache.org/viewcvs?rev=331628&view=rev
Log:
Correct handling of invalid getInitParameter parameter. 

Modified:
    portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/container/JetspeedPortletConfig.java

Modified: portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/container/JetspeedPortletConfig.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/container/JetspeedPortletConfig.java?rev=331628&r1=331627&r2=331628&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/container/JetspeedPortletConfig.java
(original)
+++ portals/jetspeed-2/trunk/commons/src/java/org/apache/jetspeed/container/JetspeedPortletConfig.java
Mon Nov  7 14:37:34 2005
@@ -76,6 +76,10 @@
 
     public String getInitParameter(java.lang.String name)
     {
+        if ( name == null )
+        {
+            throw new IllegalArgumentException("Required parameter name is null");
+        }
         //if (log.isDebugEnabled()) log.debug("Getting init parameter for: " + name);
         ParameterSet parameters = portletDefinition.getInitParameterSet();
         Parameter param = parameters.get(name);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message