From 5dd666257d1211662fa30f05222f8c2fa486ec1a Mon Sep 17 00:00:00 2001 From: genofire Date: Sat, 29 Feb 2020 10:14:52 +0100 Subject: [PATCH] [BUGFIX] crash on resolve.toString if hostname is null (#3635) --- src/main/java/eu/siacs/conversations/utils/Resolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/Resolver.java b/src/main/java/eu/siacs/conversations/utils/Resolver.java index 8ba1c4cd7..a7072e8bc 100644 --- a/src/main/java/eu/siacs/conversations/utils/Resolver.java +++ b/src/main/java/eu/siacs/conversations/utils/Resolver.java @@ -368,7 +368,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 +