cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1559172 - /cxf/trunk/core/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java
Date Fri, 17 Jan 2014 16:33:42 GMT
Author: dkulp
Date: Fri Jan 17 16:33:41 2014
New Revision: 1559172

URL: http://svn.apache.org/r1559172
Log:
[CXF-5498] Put a DOM level3 check around DOM level 3 API call

Modified:
    cxf/trunk/core/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java?rev=1559172&r1=1559171&r2=1559172&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java Fri Jan
17 16:33:41 2014
@@ -85,7 +85,12 @@ public class W3CDOMStreamReader extends 
         return document;
     }
     public String getSystemId() {
-        return sysId == null ? document.getDocumentURI() : sysId;
+        try {
+            return sysId == null ? document.getDocumentURI() : sysId;
+        } catch (Throwable ex) {
+            //ignore, probably not DOM level 3
+        }
+        return sysId;
     }
     /**
      * Find name spaces declaration in atrributes and move them to separate



Mime
View raw message