From 3441286d46903e29444de7a5994e3c7ef4004b1b Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Sat, 4 Mar 2017 17:36:36 -0500 Subject: [PATCH] Add null check --- core/src/main/java/io/bitsquare/btc/wallet/WalletService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/bitsquare/btc/wallet/WalletService.java b/core/src/main/java/io/bitsquare/btc/wallet/WalletService.java index eb1c83904c..bae5f4ba92 100644 --- a/core/src/main/java/io/bitsquare/btc/wallet/WalletService.java +++ b/core/src/main/java/io/bitsquare/btc/wallet/WalletService.java @@ -559,7 +559,7 @@ public abstract class WalletService { int size = tx.bitcoinSerialize().length; log.info("\n" + tracePrefix + ":\n" + tx.toString() + - "Satoshi/byte: " + tx.getFee().value / size + + "Satoshi/byte: " + (tx.getFee() != null ? tx.getFee().value / size : "No fee set yet") + " (size: " + size + ")"); }