mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-16 17:23:35 +00:00
Fix potential OOB
This commit is contained in:
parent
f648d63f4b
commit
937d59a27a
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ public class StoreIconChoiceComp extends SimpleComp {
|
|||
}
|
||||
var data = partitionList(filtered, columns);
|
||||
table.getItems().setAll(data);
|
||||
if (filtered.size() == 1) {
|
||||
// Table updates seem to not always be instant, sometimes the column is not there yet
|
||||
if (filtered.size() == 1 && table.getColumns().size() > 0) {
|
||||
table.getSelectionModel().select(0, table.getColumns().getFirst());
|
||||
selected.setValue(filtered.getFirst());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue