Add null check

This commit is contained in:
Manfred Karrer 2016-03-29 15:27:54 +02:00
parent 4a8161146b
commit f1388f6ad7

View file

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