From 8dd82436bb831174334b7fbf12c2da1569f79451 Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 7 Feb 2020 08:42:00 +0100 Subject: [BUGFIX] crash on resolve.toString if hostname is null (#444) Thank you @genofire --- src/main/java/de/pixart/messenger/utils/Resolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/pixart') 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 + -- cgit v1.2.3