mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
Also check that srvRecords is not empty
This commit is contained in:
parent
9526926cd3
commit
1bcb5a2d1a
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ public class DNSUtil {
|
|||
}
|
||||
|
||||
List<SRVRecord> srvRecords = dnsResolver.lookupSRVRecords(srvDomain, failedAddresses, dnssecMode);
|
||||
if (srvRecords != null) {
|
||||
if (srvRecords != null && !srvRecords.isEmpty()) {
|
||||
if (LOGGER.isLoggable(Level.FINE)) {
|
||||
String logMessage = "Resolved SRV RR for " + srvDomain + ":";
|
||||
for (SRVRecord r : srvRecords)
|
||||
|
|
Loading…
Reference in a new issue