fix for npe in xig

This commit is contained in:
Grahame Grieve 2023-09-08 10:07:06 +10:00
parent 307623fd05
commit f67596f25b
1 changed files with 1 additions and 1 deletions

View File

@ -2613,7 +2613,7 @@ public class StructureDefinitionRenderer extends ResourceRenderer {
c.addStyledText(translate("sd.table", "This type must be supported"), "S", "white", "red", null, false); 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); Cell typeCell = choicerow.getCells().get(3);
typeCell.addPiece(gen.new Piece(null, "(", null)); typeCell.addPiece(gen.new Piece(null, "(", null));
boolean first = true; boolean first = true;