mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-14 20:42:21 -04:00
Add null check
This commit is contained in:
parent
4a8161146b
commit
f1388f6ad7
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ public class SignPayoutTx extends TradeTask {
|
|||
try {
|
||||
runInterceptHook();
|
||||
checkNotNull(trade.getTradeAmount(), "trade.getTradeAmount() must not be null");
|
||||
checkNotNull(trade.getDepositTx(), "trade.getDepositTx() must not be null");
|
||||
Coin sellerPayoutAmount = FeePolicy.getSecurityDeposit();
|
||||
Coin buyerPayoutAmount = sellerPayoutAmount.add(trade.getTradeAmount());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue