forked from I2P_Developers/i2p.i2p
Data: Fix NPE in debug logging
This commit is contained in:
@ -600,9 +600,12 @@ public class EncryptedLeaseSet extends LeaseSet2 {
|
||||
public String toString() {
|
||||
StringBuilder buf = new StringBuilder(128);
|
||||
buf.append("[EncryptedLeaseSet: ");
|
||||
buf.append("\n\tBlinded Key: ").append(_signingKey);
|
||||
buf.append("\n\tHash: ").append(getHash());
|
||||
buf.append("\n\tB32: ").append(getHash().toBase32());
|
||||
if (_signingKey != null) {
|
||||
buf.append("\n\tBlinded Key: ").append(_signingKey);
|
||||
Hash h = getHash();
|
||||
buf.append("\n\tHash: ").append(h);
|
||||
buf.append("\n\tB32: ").append(h.toBase32());
|
||||
}
|
||||
if (isOffline()) {
|
||||
buf.append("\n\tTransient Key: ").append(_transientSigningPublicKey);
|
||||
buf.append("\n\tTransient Expires: ").append(new java.util.Date(_transientExpires));
|
||||
|
@ -401,8 +401,10 @@ public class LeaseSet extends DatabaseEntry {
|
||||
public String toString() {
|
||||
StringBuilder buf = new StringBuilder(128);
|
||||
buf.append("[LeaseSet: ");
|
||||
buf.append("\n\tDestination: ").append(_destination);
|
||||
buf.append("\n\tB32: ").append(_destination.toBase32());
|
||||
if (_destination != null) {
|
||||
buf.append("\n\tDestination: ").append(_destination);
|
||||
buf.append("\n\tB32: ").append(_destination.toBase32());
|
||||
}
|
||||
buf.append("\n\tEncryptionKey: ").append(_encryptionKey);
|
||||
buf.append("\n\tSigningKey: ").append(_signingKey);
|
||||
buf.append("\n\tSignature: ").append(_signature);
|
||||
|
@ -603,8 +603,10 @@ public class LeaseSet2 extends LeaseSet {
|
||||
public String toString() {
|
||||
StringBuilder buf = new StringBuilder(128);
|
||||
buf.append("[LeaseSet2: ");
|
||||
buf.append("\n\tDestination: ").append(_destination);
|
||||
buf.append("\n\tB32: ").append(_destination.toBase32());
|
||||
if (_destination != null) {
|
||||
buf.append("\n\tDestination: ").append(_destination);
|
||||
buf.append("\n\tB32: ").append(_destination.toBase32());
|
||||
}
|
||||
List<PublicKey> keys = getEncryptionKeys();
|
||||
int sz = keys.size();
|
||||
buf.append("\n\tEncryption Keys: ").append(sz);
|
||||
|
Reference in New Issue
Block a user