diff --git a/drongo b/drongo index a56f8971..891499af 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit a56f8971c022192dbce0dfc5da3c417b605e4b4f +Subproject commit 891499aff04b69f53bf143464001b96b44a0ec53 diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java index d837bec8..f5bec9ff 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java @@ -286,9 +286,11 @@ public class SendController extends WalletFormController implements Initializabl updateFeeRateSelection(feeRatesSelection); feeSelectionToggleGroup.selectToggle(feeRatesSelection == FeeRatesSelection.BLOCK_TARGET ? targetBlocksToggle : mempoolSizeToggle); feeSelectionToggleGroup.selectedToggleProperty().addListener((observable, oldValue, newValue) -> { - FeeRatesSelection newFeeRatesSelection = (FeeRatesSelection)newValue.getUserData(); - Config.get().setFeeRatesSelection(newFeeRatesSelection); - EventManager.get().post(new FeeRatesSelectionChangedEvent(getWalletForm().getWallet(), newFeeRatesSelection)); + if(newValue != null) { + FeeRatesSelection newFeeRatesSelection = (FeeRatesSelection)newValue.getUserData(); + Config.get().setFeeRatesSelection(newFeeRatesSelection); + EventManager.get().post(new FeeRatesSelectionChangedEvent(getWalletForm().getWallet(), newFeeRatesSelection)); + }; }); fee.setTextFormatter(new CoinTextFormatter());