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:13:08 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes e629ea636 -> a05c7c9b7


[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/a05c7c9b
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a05c7c9b
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a05c7c9b

Branch: refs/heads/3.1.x-fixes
Commit: a05c7c9b79186724301f34efb8636f9cdcaa886e
Parents: e629ea6
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:12:23 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/a05c7c9b/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