Fix failed trades view when contract is null

This commit is contained in:
xyzmaker123 2022-02-14 17:27:24 +01:00
parent 15abe71dd3
commit 8f6dff604b
No known key found for this signature in database
GPG key ID: 47689699B7B0AAFC

View file

@ -107,6 +107,7 @@ class FailedTradesDataModel extends ActivatableDataModel {
}
private boolean isTradeWithSameCurrentNodeAddress(Trade trade) {
if (trade.getContract() == null) return false;
NodeAddress tradeNodeAddress = trade.getContract().getMyNodeAddress(keyRing.getPubKeyRing());
return Objects.equals(p2PService.getNetworkNode().getNodeAddress(), tradeNodeAddress);
}