You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2011/10/20 17:53:08 UTC

svn commit: r1186868 - /cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java

Author: dkulp
Date: Thu Oct 20 15:53:08 2011
New Revision: 1186868

URL: http://svn.apache.org/viewvc?rev=1186868&view=rev
Log:
Fix issues if the systemId passed to ERU is an invalid URI.  A different
exception is thrown in that case.

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java?rev=1186868&r1=1186867&r2=1186868&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java Thu Oct 20 15:53:08 2011
@@ -135,10 +135,12 @@ public final class EndpointReferenceUtil
                         url = new URL(url, systemId);
                         newId = url.toExternalForm();
                     }
+                } catch (IllegalArgumentException e) {
+                    //ignore - systemId not a valid URI
                 } catch (URISyntaxException e) {
-                    //ignore
+                    //ignore - baseURI not a valid URI
                 } catch (MalformedURLException e) {
-                    //ignore
+                    //ignore - baseURI or systemId not a URL either
                 }
             }
             if (done.contains(newId + ":" + namespaceURI)) {