New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaxim crashes on custom port without custom server #97

Closed
ge0rg opened this Issue Aug 28, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@ge0rg
Collaborator

ge0rg commented Aug 28, 2013

if either the custom host or the custom port is set, SRV is disabled and manual connection is performed to the given host-port pair.

However, if no hostname is supplied, yaxim crashes:

stacktrace: java.lang.IllegalArgumentException: FQDN is null
    at org.jivesoftware.smack.util.dns.HostAddress.<init>(HostAddress.java:31)
    at org.jivesoftware.smack.util.DNSUtil.resolveXMPPDomain(DNSUtil.java:85)
    at org.jivesoftware.smack.ConnectionConfiguration.<init>(ConnectionConfiguration.java:107)
    at org.yaxim.androidclient.service.SmackableImp.initXMPPConnection(SmackableImp.java:160)
    at org.yaxim.androidclient.service.SmackableImp.doConnect(SmackableImp.java:187)
    at org.yaxim.androidclient.service.XMPPService$3.run(XMPPService.java:329)
@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Aug 28, 2013

Collaborator

Update: the issue seems to appear as well when the SRV lookup fails, and the hostname returned from it is null.

Also, punycode domains are broken.

Collaborator

ge0rg commented Aug 28, 2013

Update: the issue seems to appear as well when the SRV lookup fails, and the hostname returned from it is null.

Also, punycode domains are broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment