mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Fix potential NPE in persistence of Contract.
This commit is contained in:
parent
bba7327115
commit
c7f36b255b
1 changed files with 3 additions and 2 deletions
|
@ -226,9 +226,10 @@ public final class Contract implements NetworkPayload {
|
|||
.setTakerPayoutAddressString(takerPayoutAddressString)
|
||||
.setMakerMultiSigPubKey(ByteString.copyFrom(makerMultiSigPubKey))
|
||||
.setTakerMultiSigPubKey(ByteString.copyFrom(takerMultiSigPubKey))
|
||||
.setLockTime(lockTime)
|
||||
.setRefundAgentNodeAddress(refundAgentNodeAddress.toProtoMessage());
|
||||
.setLockTime(lockTime);
|
||||
|
||||
Optional.ofNullable(refundAgentNodeAddress) // bisq/issues/6953 refundAgentNodeAddress sometimes is null
|
||||
.ifPresent(e -> builder.setRefundAgentNodeAddress(refundAgentNodeAddress.toProtoMessage()));
|
||||
Optional.ofNullable(hashOfMakersPaymentAccountPayload)
|
||||
.ifPresent(e -> builder.setHashOfMakersPaymentAccountPayload(ByteString.copyFrom(hashOfMakersPaymentAccountPayload)));
|
||||
Optional.ofNullable(hashOfTakersPaymentAccountPayload)
|
||||
|
|
Loading…
Add table
Reference in a new issue