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/02/23 18:15:05 UTC

svn commit: r1073832 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java

Author: dkulp
Date: Wed Feb 23 17:15:04 2011
New Revision: 1073832

URL: http://svn.apache.org/viewvc?rev=1073832&view=rev
Log:
Catch all exceptions and use the default NS if cannot be mapped.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java?rev=1073832&r1=1073831&r2=1073832&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java Wed Feb 23 17:15:04 2011
@@ -25,7 +25,6 @@ import java.io.InputStream;
 import java.io.UnsupportedEncodingException;
 import java.net.MalformedURLException;
 import java.net.URI;
-import java.net.URISyntaxException;
 import java.net.URL;
 import java.net.URLDecoder;
 import java.net.URLEncoder;
@@ -88,9 +87,7 @@ public final class AttachmentUtil {
                 URI uri = new URI(ns);
                 String host = uri.toURL().getHost();
                 cid = host;
-            } catch (URISyntaxException e) {
-                cid = ns;
-            } catch (MalformedURLException e) {
+            } catch (Exception e) {
                 cid = ns;
             }
         }