fix index error validating HierarchicalTable

This commit is contained in:
Grahame Grieve 2023-04-01 07:34:14 +11:00
parent 7ef17d41d6
commit 981d233827
1 changed files with 1 additions and 1 deletions

View File

@ -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());