mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-07 14:42:51 -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 {
|
try {
|
||||||
runInterceptHook();
|
runInterceptHook();
|
||||||
checkNotNull(trade.getTradeAmount(), "trade.getTradeAmount() must not be null");
|
checkNotNull(trade.getTradeAmount(), "trade.getTradeAmount() must not be null");
|
||||||
|
checkNotNull(trade.getDepositTx(), "trade.getDepositTx() must not be null");
|
||||||
Coin sellerPayoutAmount = FeePolicy.getSecurityDeposit();
|
Coin sellerPayoutAmount = FeePolicy.getSecurityDeposit();
|
||||||
Coin buyerPayoutAmount = sellerPayoutAmount.add(trade.getTradeAmount());
|
Coin buyerPayoutAmount = sellerPayoutAmount.add(trade.getTradeAmount());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue