mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
fix npe validating pub key
This commit is contained in:
parent
f869aec688
commit
857a1d0be8
1 changed files with 1 additions and 1 deletions
|
@ -588,7 +588,7 @@ public abstract class TradeProtocol implements DecryptedDirectMessageListener, D
|
||||||
if (trade.getArbitratorPubKeyRing() != null && message.getSignaturePubKey().equals(trade.getArbitratorPubKeyRing().getSignaturePubKey())) return true;
|
if (trade.getArbitratorPubKeyRing() != null && message.getSignaturePubKey().equals(trade.getArbitratorPubKeyRing().getSignaturePubKey())) return true;
|
||||||
|
|
||||||
// not invalid if pub key rings are unknown
|
// not invalid if pub key rings are unknown
|
||||||
if (trade.getTradingPeer().getPubKeyRing() == null && trade.getArbitratorPubKeyRing() == null) return true;
|
if ((trade.getTradingPeer() == null || trade.getTradingPeer().getPubKeyRing() == null) && trade.getArbitratorPubKeyRing() == null) return true;
|
||||||
|
|
||||||
// valid if peer's pub key ring
|
// valid if peer's pub key ring
|
||||||
if (trade.getTradingPeer() != null && trade.getTradingPeer().getPubKeyRing() != null && message.getSignaturePubKey().equals(trade.getTradingPeer().getPubKeyRing().getSignaturePubKey())) return true;
|
if (trade.getTradingPeer() != null && trade.getTradingPeer().getPubKeyRing() != null && message.getSignaturePubKey().equals(trade.getTradingPeer().getPubKeyRing().getSignaturePubKey())) return true;
|
||||||
|
|
Loading…
Reference in a new issue