mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 08:14:43 +00:00
terminal: check if theme is present to avoid exception on utxo history update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user