Add null check

This commit is contained in:
Manfred Karrer 2017-03-04 17:36:36 -05:00
parent f0bf3daddf
commit 3441286d46

View File

@ -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 + ")");
}