mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-13 16:24:44 +00:00
fix wrong look up of value set alternative causing NPE
This commit is contained in:
parent
4de39a71da
commit
8cd18aae93
@ -243,7 +243,7 @@ public class ValueSetValidator extends BaseValidator {
|
|||||||
if (vs == null) {
|
if (vs == null) {
|
||||||
NodeStack ns = stack.push(ve, i, ve.getProperty().getDefinition(), ve.getProperty().getDefinition());
|
NodeStack ns = stack.push(ve, i, ve.getProperty().getDefinition(), ve.getProperty().getDefinition());
|
||||||
|
|
||||||
Resource rs = context.findTxResource(Resource.class, v);
|
Resource rs = context.fetchResource(Resource.class, v);
|
||||||
if (rs != null) {
|
if (rs != null) {
|
||||||
warning(errors, NO_RULE_DATE, IssueType.BUSINESSRULE, ns.getLiteralPath(), false, I18nConstants.VALUESET_REFERENCE_INVALID_TYPE, v, rs.fhirType());
|
warning(errors, NO_RULE_DATE, IssueType.BUSINESSRULE, ns.getLiteralPath(), false, I18nConstants.VALUESET_REFERENCE_INVALID_TYPE, v, rs.fhirType());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user