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:25 GMT
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 <coheigea@apache.org>
Authored: Fri Feb 19 10:24:43 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@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);


Mime
View raw message