mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Merge pull request #6045 from xyzmaker123/5634-fix-nullable-contract
Fix failed trades view when contract is null
This commit is contained in:
commit
d8f66c0725
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue