cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1098915 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
Date Tue, 03 May 2011 05:39:10 GMT
Author: ffang
Date: Tue May  3 05:39:09 2011
New Revision: 1098915

URL: http://svn.apache.org/viewvc?rev=1098915&view=rev
Log:
[CXF-3480]URIMappingInterceptor and ArrayIndexOutOfBounds Error

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=1098915&r1=1098914&r2=1098915&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
Tue May  3 05:39:09 2011
@@ -314,8 +314,10 @@ public class URIMappingInterceptor exten
         if (!StringUtils.isEmpty(query)) {            
             List<String> parts = Arrays.asList(query.split("&"));
             for (String part : parts) {
-                String[] keyValue = part.split("=");
-                queries.put(keyValue[0], uriDecode(keyValue[1]));
+                if (part.contains("=")) {
+                    String[] keyValue = part.split("=");
+                    queries.put(keyValue[0], uriDecode(keyValue[1]));
+                }
             }
             return queries;
         }



Mime
View raw message