git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1616
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
// Parse file and verify root element.
Document doc = Parser.loadDom(infile, true);
+ if (doc == null) {
+ System.out.println("error: unable to read in file (" + infile + ")");
+ System.exit(-1);
+ }
Element e = doc.getDocumentElement();
if (ns != null && name != null && !org.opensaml.XML.isElementNamed(e, ns, name)) {
System.err.println("error: root element did not match ns and name parameters");