fix csv export by avoiding null pointer with ZERO
This commit is contained in:
parent
d094997666
commit
497f987541
@ -57,7 +57,7 @@ public interface Tradable extends PersistablePayload {
|
||||
}
|
||||
|
||||
default BigInteger getTotalTxFee() {
|
||||
return asTradeModel().map(Trade::getTotalTxFee).get();
|
||||
return asTradeModel().map(Trade::getTotalTxFee).orElse(BigInteger.ZERO);
|
||||
}
|
||||
|
||||
default Optional<BigInteger> getOptionalTakerFee() {
|
||||
|
Loading…
Reference in New Issue
Block a user