Skip to content

Commit

Permalink
fix Crash on slicing a sliced element #862
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Feb 22, 2024
1 parent 5783481 commit 4fdaee1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ private void processPathWithSlicedBaseDefault(ElementDefinition currentBase, Str
}
// throw new Error("Not done yet");
// } else if (currentBase.getType().get(0).getCode().equals("BackboneElement") && diffMatches.size() > 0 && diffMatches.get(0).hasSliceName()) {
} else if (currentBase.getType().get(0).getCode().equals("BackboneElement")) {
} else if (!currentBase.getType().isEmpty() && currentBase.getType().get(0).getCode().equals("BackboneElement")) {
// We need to copy children of the backbone element before we start messing around with slices
int newBaseLimit = profileUtilities.findEndOfElement(cursors.base, cursors.baseCursor);
for (int i = cursors.baseCursor + 1; i <= newBaseLimit; i++) {
Expand Down

0 comments on commit 4fdaee1

Please sign in to comment.