Permalink
Browse files

Fix issue #75, make sure a null system identifier doesn't cause the r…

…esolver to NPE.
  • Loading branch information...
ndw committed Feb 14, 2013
1 parent 6edf025 commit 563a18608f6eae2611ab416588292fb137e21bfb
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/com/xmlcalabash/util/XProcURIResolver.java
@@ -236,6 +236,10 @@ public XdmNode parse(InputSource isource) {
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
runtime.finest(null,null,"ResolveEntity(" + publicId + "," + systemId + ")");
+ if (systemId == null) {
+ return null;
+ }
+
try {
URI baseURI = new URI(systemId);
String uri = baseURI.toASCIIString();

0 comments on commit 563a186

Please sign in to comment.