Fix bug processing snapshot

This commit is contained in:
Grahame Grieve 2023-10-25 06:23:49 +11:00
parent 74a5c4cf43
commit 3e98c25cc2
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ public class ProfilePathProcessor {
ElementDefinition res = null; ElementDefinition res = null;
List<TypeSlice> typeList = new ArrayList<>(); List<TypeSlice> typeList = new ArrayList<>();
// just repeat processing entries until we run out of our allowed scope (1st entry, the allowed scope is all the entries) // just repeat processing entries until we run out of our allowed scope (1st entry, the allowed scope is all the entries)
while (cursors.baseCursor <= getBaseLimit()) { while (cursors.baseCursor <= getBaseLimit() && cursors.baseCursor < cursors.base.getElement().size()) {
// get the current focus of the base, and decide what to do // get the current focus of the base, and decide what to do
ElementDefinition currentBase = cursors.base.getElement().get(cursors.baseCursor); ElementDefinition currentBase = cursors.base.getElement().get(cursors.baseCursor);
String currentBasePath = profileUtilities.fixedPathSource(getContextPathSource(), currentBase.getPath(), getRedirector()); String currentBasePath = profileUtilities.fixedPathSource(getContextPathSource(), currentBase.getPath(), getRedirector());