From 4d5eefc523cbcf0e416f41180212840655bcb2e3 Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 7 Feb 2020 08:10:58 +0100 Subject: [PATCH] [BUGFIX] crash on resolve.toString if hostname is null --- 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 +