powered by Jive Software

NullPointerException MiniDnsResolver.lookupSRVRecords0

List<HostAddress> hostAddresses = DNSUtil.resolveXMPPServiceDomain(DnsName.from(mXMPPUser.getDomain()), null, ConnectionConfiguration.DnssecMode.disabled);

has caused the following crash

Fatal Exception: java.lang.NullPointerException
Attempt to invoke interface method ‘boolean java.util.List.add(java.lang.Object)’ on a null object reference
org.jivesoftware.smack.util.dns.minidns.MiniDnsResolver.lookupSRVRecords0 (MiniDnsResolver.java:76)
org.jivesoftware.smack.util.dns.DNSResolver.lookupSRVRecords (DNSResolver.java:53)
org.jivesoftware.smack.util.DNSUtil.resolveDomain (DNSUtil.java:155)
org.jivesoftware.smack.util.DNSUtil.resolveXMPPServiceDomain (DNSUtil.java:115)

I am using version 4.3.4

Just don’t pass null as the failure list (2dn argument).

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.