fix index error

This commit is contained in:
Grahame Grieve 2023-06-17 09:41:15 +10:00
parent 64f84274af
commit 11eb2cef53
1 changed files with 3 additions and 2 deletions

View File

@ -394,8 +394,9 @@ public class StructureDefinitionSpreadsheetGenerator extends CanonicalSpreadshee
}
}
}
sheet.setActiveCell(new CellAddress(sheet.getRow(1).getCell(0)));
if (sheet.getLastRowNum() > 0) {
sheet.setActiveCell(new CellAddress(sheet.getRow(1).getCell(0)));
}
}
}