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:52:41 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 06d9f627d -> 7ff1893d7


NPE fix


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

Branch: refs/heads/3.0.x-fixes
Commit: 7ff1893d7479f3e1b7c144023f2e62a2dd7daac6
Parents: 06d9f62
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:54 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/7ff1893d/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