From 2d7c5dcec7f7cf10cfdd7516dec43c8764ceff96 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 7 Aug 2023 12:00:58 +0200 Subject: [PATCH] terminal: check if theme is present to avoid exception on utxo history update --- .../com/sparrowwallet/sparrow/terminal/wallet/UtxosDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/terminal/wallet/UtxosDialog.java b/src/main/java/com/sparrowwallet/sparrow/terminal/wallet/UtxosDialog.java index 94000aa6..952eaf32 100644 --- a/src/main/java/com/sparrowwallet/sparrow/terminal/wallet/UtxosDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/terminal/wallet/UtxosDialog.java @@ -192,7 +192,7 @@ public class UtxosDialog extends WalletDialog { SparrowTerminal.get().getGuiThread().invokeLater(() -> { TableModel 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); } });