cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: NPE fix
Date Fri, 19 Feb 2016 10:51:42 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes e1c490fdb -> 91487b936


NPE fix


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

Branch: refs/heads/3.1.x-fixes
Commit: 91487b936e5cb8eea98ed5fdff220af950ed2ad2
Parents: e1c490f
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Feb 19 10:24:43 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Feb 19 10:51:38 2016 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/binding/soap/SoapTransportFactory.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/91487b93/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
----------------------------------------------------------------------
diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
index a72d102..cb129ef 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
+++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
@@ -128,6 +128,10 @@ public class SoapTransportFactory extends AbstractTransportFactory implements
De
             } else {
                 destinationFactory = mgr.getDestinationFactoryForUri(address);
             }
+            if (destinationFactory == null) {
+                throw new IOException("Could not find destination factory for transport "
+ transId);
+            }
+
             return destinationFactory.getDestination(ei, bus);
         } catch (BusException e) {
             IOException ex = new IOException("Could not find destination factory for transport
" + transId);


Mime
View raw message