mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-09-25 19:11:04 -04:00
Add null check
This commit is contained in:
parent
625a249051
commit
5b7bff1a89
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ import java.security.spec.X509EncodedKeySpec;
|
||||||
public class ProtectedMailboxStorageEntry extends ProtectedStorageEntry {
|
public class ProtectedMailboxStorageEntry extends ProtectedStorageEntry {
|
||||||
// That object is sent over the wire, so we need to take care of version compatibility.
|
// That object is sent over the wire, so we need to take care of version compatibility.
|
||||||
private static final long serialVersionUID = Version.P2P_NETWORK_VERSION;
|
private static final long serialVersionUID = Version.P2P_NETWORK_VERSION;
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(P2PDataStorage.class);
|
private static final Logger log = LoggerFactory.getLogger(P2PDataStorage.class);
|
||||||
|
|
||||||
public transient PublicKey receiversPubKey;
|
public transient PublicKey receiversPubKey;
|
||||||
|
@ -45,7 +45,7 @@ public class ProtectedMailboxStorageEntry extends ProtectedStorageEntry {
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ProtectedMailboxData{" +
|
return "ProtectedMailboxData{" +
|
||||||
"receiversPubKey.hashCode()=" + receiversPubKey.hashCode() +
|
"receiversPubKey.hashCode()=" + (receiversPubKey != null ? receiversPubKey.hashCode() : "") +
|
||||||
"} " + super.toString();
|
"} " + super.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue