cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1539070 - /cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
Date Tue, 05 Nov 2013 17:20:05 GMT
Author: sergeyb
Date: Tue Nov  5 17:20:05 2013
New Revision: 1539070

URL: http://svn.apache.org/r1539070
Log:
Adding a null check to the code creating new HttpClient

Modified:
    cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java

Modified: cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java?rev=1539070&r1=1539069&r2=1539070&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
(original)
+++ cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
Tue Nov  5 17:20:05 2013
@@ -115,6 +115,9 @@ public class AsyncHTTPConduit extends UR
         if (client == null) {
             client = factory.createClient(this);
         }
+        if (client == null) {
+            throw new IOException("HttpAsyncClient is null");
+        }
         return client;
     }
     public AsyncHTTPConduitFactory getAsyncHTTPConduitFactory() {



Mime
View raw message