cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Adding a cached stream NPE check to HttpConduit
Date Mon, 27 Feb 2017 10:43:50 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes e4f53e1dd -> ee2cc36e4


Adding a cached stream NPE check to HttpConduit


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

Branch: refs/heads/3.1.x-fixes
Commit: ee2cc36e41c0c3daf06b154f1db9136d89fd406b
Parents: e4f53e1
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Feb 27 10:42:58 2017 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Feb 27 10:43:34 2017 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/transport/http/HTTPConduit.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ee2cc36e/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
index f7b1390..e896461 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
@@ -1259,7 +1259,7 @@ public abstract class HTTPConduit
 
             // If this is a GET method we must not touch the output
             // stream as this automagically turns the request into a POST.
-            if (getMethod().equals("GET")) {
+            if (getMethod().equals("GET") || cachedStream == null) {
                 handleNoOutput();
                 return;
             }


Mime
View raw message