cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1100873 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
Date Mon, 09 May 2011 04:01:13 GMT
Author: ffang
Date: Mon May  9 04:01:13 2011
New Revision: 1100873

URL: http://svn.apache.org/viewvc?rev=1100873&view=rev
Log:
[CXF-3499]URIMappingInterceptor and ArrayIndexOutOfBoundsException

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java?rev=1100873&r1=1100872&r2=1100873&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
Mon May  9 04:01:13 2011
@@ -316,7 +316,9 @@ public class URIMappingInterceptor exten
             for (String part : parts) {
                 if (part.contains("=")) {
                     String[] keyValue = part.split("=");
-                    queries.put(keyValue[0], uriDecode(keyValue[1]));
+                    if (keyValue.length >= 2) {
+                        queries.put(keyValue[0], uriDecode(keyValue[1]));
+                    }
                 }
             }
             return queries;



Mime
View raw message