From 981d233827af14a2e15bf08c55d062d686a607f9 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sat, 1 Apr 2023 07:34:14 +1100 Subject: [PATCH] fix index error validating HierarchicalTable --- .../hl7/fhir/utilities/xhtml/HierarchicalTableGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/HierarchicalTableGenerator.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/HierarchicalTableGenerator.java index 96be02c05..71d4aa05b 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/HierarchicalTableGenerator.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/HierarchicalTableGenerator.java @@ -968,7 +968,7 @@ public class HierarchicalTableGenerator extends TranslatingUtilities { for (Cell c : r.getCells()) { tc = tc + c.span; } - check(tc == size, "All rows must have the same number of columns as the titles ("+Integer.toString(size)+") but row "+path+" doesn't - it has "+tc+" ("+r.getCells().get(0).text()+"): "+r.getCells()); + check(tc == size, "All rows must have the same number of columns as the titles ("+Integer.toString(size)+") but row "+path+" doesn't - it has "+tc+" ("+(r.getCells().size() > 0 ? "??" : r.getCells().get(0).text())+"): "+r.getCells()); int i = 0; for (Row c : r.getSubRows()) { check(c, "rows", size, path, i, r.getSubRows().size());