Skip to content

Commit

Permalink
Throw an exception if source has no system id
Browse files Browse the repository at this point in the history
See #4
  • Loading branch information
joeha480 committed May 22, 2019
1 parent be56f02 commit 200e5eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/daisy/dotify/common/xml/XMLTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@ public static <T extends Exception> void transform(Source source, Result result,
//TODO: really catch everything?
e.printStackTrace();
}
}
} else {
throw env.toThrowable(new XMLToolsException("No system id on source, see https://github.com/brailleapps/dotify.common/issues/4."));
}
}

private static SAXSource setEntityResolver(SAXSource source) {
Expand Down

0 comments on commit 200e5eb

Please sign in to comment.