From f67596f25b09a3b93c21d4ac2fc3107a39ab4352 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 8 Sep 2023 10:07:06 +1000 Subject: [PATCH] fix for npe in xig --- .../org/hl7/fhir/r5/renderers/StructureDefinitionRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/StructureDefinitionRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/StructureDefinitionRenderer.java index 11268c78f..f58cbabda 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/StructureDefinitionRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/StructureDefinitionRenderer.java @@ -2613,7 +2613,7 @@ public class StructureDefinitionRenderer extends ResourceRenderer { c.addStyledText(translate("sd.table", "This type must be supported"), "S", "white", "red", null, false); } } - if (tr.hasProfile()) { + if (tr.hasProfile() && choicerow.getCells().size() >= 4) { Cell typeCell = choicerow.getCells().get(3); typeCell.addPiece(gen.new Piece(null, "(", null)); boolean first = true;