You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/02/19 11:51:25 UTC
cxf git commit: NPE fix
Repository: cxf
Updated Branches:
refs/heads/master 9fd37c1e6 -> 04c05b148
NPE fix
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/04c05b14
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/04c05b14
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/04c05b14
Branch: refs/heads/master
Commit: 04c05b1481e6148cb31f30b01eb4ac2d37229617
Parents: 9fd37c1
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Fri Feb 19 10:24:43 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Fri Feb 19 10:24:43 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/04c05b14/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);