aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgenofire <geno+dev@fireorbit.de>2020-02-07 08:42:00 +0100
committerGitHub <noreply@github.com>2020-02-07 08:42:00 +0100
commit8dd82436bb831174334b7fbf12c2da1569f79451 (patch)
tree570ec55e4ff99a451ba1442e855e89a8de6f59b5 /src
parentbaa5ba17cd1578bd3859e4ff306cf6ffc705d6f9 (diff)
[BUGFIX] crash on resolve.toString if hostname is null (#444)
Thank you @genofire
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/utils/Resolver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/Resolver.java b/src/main/java/de/pixart/messenger/utils/Resolver.java
index 0221b08b7..bf66b38e1 100644
--- a/src/main/java/de/pixart/messenger/utils/Resolver.java
+++ b/src/main/java/de/pixart/messenger/utils/Resolver.java
@@ -382,7 +382,7 @@ public class Resolver {
public String toString() {
return "Result{" +
"ip='" + (ip == null ? null : ip.getHostAddress()) + '\'' +
- ", hostame='" + hostname.toString() + '\'' +
+ ", hostame='" + (hostname == null ? null : hostname.toString()) + '\'' +
", port=" + port +
", directTls=" + directTls +
", authenticated=" + authenticated +