Merge branch 'master' of github.com:jamesagnew/hapi-fhir

This commit is contained in:
jamesagnew 2018-02-24 12:05:22 -05:00
commit 76611e14b5
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();