Skip to content
Permalink
Browse files
[CXF-5498] Put a DOM level3 check around DOM level 3 API call
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1559172 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Jan 17, 2014
1 parent 605b602 commit 7fd02d12a94352b7ce5a0260906a90997342dc42
Showing 1 changed file with 6 additions and 1 deletion.
@@ -85,7 +85,12 @@ public Document getDocument() {
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

0 comments on commit 7fd02d1

Please sign in to comment.