Fix build

This commit is contained in:
James Agnew 2015-08-24 18:39:49 -04:00
parent 11c5ab7892
commit 2733812535
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ public abstract class BaseParser implements IParser {
} }
return reference; return reference;
} else { } else {
if (!ref.hasResourceType()) { if (!ref.hasResourceType() && theRef.getResource() != null) {
ref = ref.withResourceType(myContext.getResourceDefinition(theRef.getResource()).getName()); ref = ref.withResourceType(myContext.getResourceDefinition(theRef.getResource()).getName());
} }
if (isNotBlank(myServerBaseUrl) && StringUtils.equals(myServerBaseUrl, ref.getBaseUrl())) { if (isNotBlank(myServerBaseUrl) && StringUtils.equals(myServerBaseUrl, ref.getBaseUrl())) {