diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java index b0120a6e..23fb0315 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java @@ -454,8 +454,8 @@ public class SendController extends WalletFormController implements Initializabl updateTransaction(true); } - private void setFiatAmount(CurrencyRate currencyRate, long amount) { - if(currencyRate != null && currencyRate.isAvailable()) { + private void setFiatAmount(CurrencyRate currencyRate, Long amount) { + if(amount != null && currencyRate != null && currencyRate.isAvailable()) { fiatAmount.set(currencyRate, amount); } }