mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-04-03 05:32:04 +02:00
The method lookupHostAddress() returns null in case of an error, hence we need to test if the returned value is null prior adding the endpoint. Should fix the following NPE: java.lang.NullPointerException: at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration (XMPPTCPConnection.java:606) at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal (XMPPTCPConnection.java:846) at org.jivesoftware.smack.AbstractXMPPConnection.connect (AbstractXMPPConnection.java:530) at org.jivesoftware.smack.ReconnectionManager$2.run (ReconnectionManager.java:282) at java.lang.Thread.run (Thread.java:784) Reported-by: Eng ChongMeng <cmeng.gm@gmail.com> |
||
---|---|---|
.. | ||
src | ||
build.gradle |