cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1152085 - in /cxf/branches/2.4.x-fixes: ./ rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
Date Fri, 29 Jul 2011 03:20:29 GMT
Author: dkulp
Date: Fri Jul 29 03:20:28 2011
New Revision: 1152085

URL: http://svn.apache.org/viewvc?rev=1152085&view=rev
Log:
Merged revisions 1152083 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1152083 | dkulp | 2011-07-28 23:17:53 -0400 (Thu, 28 Jul 2011) | 1 line
  
  Add an NPE guard
........

Modified:
    cxf/branches/2.4.x-fixes/   (props changed)
    cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri Jul 29 03:20:28 2011
@@ -1 +1 @@
-/cxf/trunk:1152010
+/cxf/trunk:1152010,1152083

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java?rev=1152085&r1=1152084&r2=1152085&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
(original)
+++ cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPTransportFactory.java
Fri Jul 29 03:20:28 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