mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
terminal: check if theme is present to avoid exception on utxo history update
This commit is contained in:
parent
93bcf6cef9
commit
2d7c5dcec7
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ public class UtxosDialog extends WalletDialog {
|
|||
SparrowTerminal.get().getGuiThread().invokeLater(() -> {
|
||||
TableModel<TableCell> tableModel = getTableModel(walletUtxosEntry);
|
||||
utxos.setTableModel(tableModel);
|
||||
if(utxos.getRenderer().getViewTopRow() >= tableModel.getRowCount()) {
|
||||
if(utxos.getTheme() != null && utxos.getRenderer().getViewTopRow() >= tableModel.getRowCount()) {
|
||||
utxos.getRenderer().setViewTopRow(0);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue