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:11:50 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 93462d66a -> 319456ecd


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

Branch: refs/heads/master
Commit: 319456ecd2dd149b8efa925d851d8dec3a76f961
Parents: 93462d6
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:11:36 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/319456ec/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