cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1152083 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
Date Fri, 29 Jul 2011 03:17:54 GMT
Author: dkulp
Date: Fri Jul 29 03:17:53 2011
New Revision: 1152083

URL: http://svn.apache.org/viewvc?rev=1152083&view=rev
Log:
Add an NPE guard

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java?rev=1152083&r1=1152082&r2=1152083&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
Fri Jul 29 03:17:53 2011
@@ -255,6 +255,9 @@ public class HTTPTransportFactory 
     }
     
     public Destination getDestination(EndpointInfo endpointInfo) throws IOException {
+        if (endpointInfo == null) {
+            throw new IllegalArgumentException("EndpointInfo cannot be null");
+        }
         AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress());
         if (d == null) {
             HttpDestinationFactory jettyFactory = bus.getExtension(HttpDestinationFactory.class);



Mime
View raw message