mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-07 21:38:15 +00:00
fix for NPE in an IG
This commit is contained in:
parent
82a4c02a8f
commit
a732847f58
@ -3334,12 +3334,14 @@ public class FHIRPathEngine {
|
|||||||
Base res = null;
|
Base res = null;
|
||||||
if (s.startsWith("#")) {
|
if (s.startsWith("#")) {
|
||||||
Property p = context.rootResource.getChildByName("contained");
|
Property p = context.rootResource.getChildByName("contained");
|
||||||
|
if (p != null) {
|
||||||
for (Base c : p.getValues()) {
|
for (Base c : p.getValues()) {
|
||||||
if (chompHash(s).equals(chompHash(c.getIdBase()))) {
|
if (chompHash(s).equals(chompHash(c.getIdBase()))) {
|
||||||
res = c;
|
res = c;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (hostServices != null) {
|
} else if (hostServices != null) {
|
||||||
res = hostServices.resolveReference(context.appInfo, s, refContext);
|
res = hostServices.resolveReference(context.appInfo, s, refContext);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user