mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
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