1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Set jid to passed parameter, not null

Setting `jid` to `null` was probably not the intended behaviour of this constructor and means that the `IQReplyFilter` will later reject responses that it shouldn't, because the `AbstractXmppConnection` will automatically construct a JID based on the authenticated username.

In particular, this breaks attempting to connect to the PVP.net XMPP server.
This commit is contained in:
Luke GB 2014-08-23 17:24:53 +01:00 committed by Florian Schmaus
parent 229e526f6d
commit 659714c2be

View file

@ -40,7 +40,7 @@ public class Bind extends IQ {
public Bind(String resource, String jid) {
this.resource = resource;
this.jid = null;
this.jid = jid;
}
public String getResource() {