Fix compile error

This commit is contained in:
James Agnew 2018-02-24 12:05:05 -05:00
parent 9757f58805
commit f026f8a1ac
1 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ public class XmlParser extends BaseParser /* implements IParser */ {
Attribute urlAttr = elem.getAttributeByName(new QName("url"));
String url;
if (urlAttr == null || isBlank(urlAttr.getValue())) {
getErrorHandler().missingRequiredElement(new ParseLocation("extension"), "url");
getErrorHandler().missingRequiredElement(new ParseLocation().setParentElementName("extension"), "url");
url = null;
} else {
url = urlAttr.getValue();
@ -149,7 +149,7 @@ public class XmlParser extends BaseParser /* implements IParser */ {
Attribute urlAttr = elem.getAttributeByName(new QName("url"));
String url;
if (urlAttr == null || isBlank(urlAttr.getValue())) {
getErrorHandler().missingRequiredElement(new ParseLocation("modifierExtension"), "url");
getErrorHandler().missingRequiredElement(new ParseLocation().setParentElementName("modifierExtension"), "url");
url = null;
} else {
url = urlAttr.getValue();