Skip to content

Commit

Permalink
Fix NPE in toString method
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Apr 18, 2022
1 parent 517f1eb commit 5c00abf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "net.azisaba.azipluginmessaging"
version = "2.1.2"
version = "2.1.3"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public boolean isChallengeEquals(@NotNull String challenge) {
public String toString() {
return "PlayerImpl{" +
"handle=" + handle +
", publicKey=" + EncryptionUtil.encodePublicKey(keyPair.getPublic()) +
", remotePublicKey=" + EncryptionUtil.encodePublicKey(remotePublicKey) +
", publicKey=" + (keyPair == null ? null : EncryptionUtil.encodePublicKey(keyPair.getPublic())) +
", remotePublicKey=" + (remotePublicKey == null ? null : EncryptionUtil.encodePublicKey(remotePublicKey)) +
", encrypted=" + encrypted +
'}';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public String toString() {
return "ServerConnectionImpl{" +
"handle=" + handle +
", encrypted=" + encrypted +
", publicKey=" + EncryptionUtil.encodePublicKey(keyPair.getPublic()) +
", remotePublicKey=" + EncryptionUtil.encodePublicKey(publicKey) +
", publicKey=" + (keyPair == null ? null : EncryptionUtil.encodePublicKey(keyPair.getPublic())) +
", remotePublicKey=" + (publicKey == null ? null : EncryptionUtil.encodePublicKey(publicKey)) +
'}';
}
}

0 comments on commit 5c00abf

Please sign in to comment.