fix csv export by avoiding null pointer with ZERO

This commit is contained in:
napoly 2023-11-24 23:50:33 +01:00 committed by woodser
parent d094997666
commit 497f987541

View File

@ -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() {