cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7075] Fixing NPE
Date Wed, 19 Oct 2016 10:14:06 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 3f6354a22 -> 4350cb303


[CXF-7075] Fixing NPE


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/4350cb30
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4350cb30
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4350cb30

Branch: refs/heads/3.0.x-fixes
Commit: 4350cb303017560396417172cf6974bd0e5c7705
Parents: 3f6354a
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Oct 19 11:11:36 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Oct 19 11:13:49 2016 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/jaxrs/impl/HttpServletRequestFilter.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/4350cb30/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/HttpServletRequestFilter.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/HttpServletRequestFilter.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/HttpServletRequestFilter.java
index 1790d36..eb1758a 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/HttpServletRequestFilter.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/HttpServletRequestFilter.java
@@ -72,7 +72,10 @@ public class HttpServletRequestFilter extends HttpServletRequestWrapper
{
         String[] value = super.getParameterValues(name);
         if (value == null && isPostFormRequest) {
             readFromParamsIfNeeded();
-            value = formParams.get(name).toArray(new String[]{});
+            List<String> values = formParams.get(name);
+            if (values != null) {
+                value = values.toArray(new String[]{});
+            }
         }
         return value;
     }


Mime
View raw message