diff --git a/src/preferences/mail/DNSQuery.cpp b/src/preferences/mail/DNSQuery.cpp index a38f49a8c0..eec110be75 100644 --- a/src/preferences/mail/DNSQuery.cpp +++ b/src/preferences/mail/DNSQuery.cpp @@ -245,6 +245,9 @@ DNSTools::ConvertToDNSName(const BString& string) BString DNSTools::ConvertFromDNSName(const BString& string) { + if (string.Length() == 0) + return string; + BString outString = string; int32 dot = string[0]; int32 nextDot = dot;