portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dettb...@apache.org
Subject svn commit: r609912 - /portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
Date Tue, 08 Jan 2008 09:10:35 GMT
Author: dettborn
Date: Tue Jan  8 01:10:26 2008
New Revision: 609912

URL: http://svn.apache.org/viewvc?rev=609912&view=rev
Log:
Fix NullPointerException for the case, when multi values are null.

Modified:
    portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java

Modified: portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java?rev=609912&r1=609911&r2=609912&view=diff
==============================================================================
--- portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
(original)
+++ portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
Tue Jan  8 01:10:26 2008
@@ -353,7 +353,8 @@
     	StringBuffer buffer = new StringBuffer();
         for (int i = 0; i < values.length; i++) {
         	try {
-				values[i] = URLEncoder.encode(values[i], "UTF-8");
+        		if (values[i] != null)
+        			values[i] = URLEncoder.encode(values[i], "UTF-8");
 			} catch (UnsupportedEncodingException e) {
 				// TODO Auto-generated catch block
 				e.printStackTrace();



Mime
View raw message