mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +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);
|
List<SRVRecord> srvRecords = dnsResolver.lookupSRVRecords(srvDomain, failedAddresses, dnssecMode);
|
||||||
if (srvRecords != null) {
|
if (srvRecords != null && !srvRecords.isEmpty()) {
|
||||||
if (LOGGER.isLoggable(Level.FINE)) {
|
if (LOGGER.isLoggable(Level.FINE)) {
|
||||||
String logMessage = "Resolved SRV RR for " + srvDomain + ":";
|
String logMessage = "Resolved SRV RR for " + srvDomain + ":";
|
||||||
for (SRVRecord r : srvRecords)
|
for (SRVRecord r : srvRecords)
|
||||||
|
|
Loading…
Reference in a new issue