mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-24 03:27:59 +01:00
Fix faulty string comparison in SubscriptionProvider
'!=' tests for reference inequality, must use '!String.equals(String)' instead.
This commit is contained in:
parent
7277eb553a
commit
18a958e442
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ public class SubscriptionProvider implements PacketExtensionProvider
|
|||
if ((tag == XmlPullParser.START_TAG) && parser.getName().equals("required"))
|
||||
isRequired = true;
|
||||
|
||||
while (tag != XmlPullParser.END_TAG && parser.getName() != "subscribe-options") tag = parser.next();
|
||||
while (tag != XmlPullParser.END_TAG && !parser.getName().equals("subscribe-options")) tag = parser.next();
|
||||
}
|
||||
while (parser.getEventType() != XmlPullParser.END_TAG) parser.next();
|
||||
return new Subscription(jid, nodeId, subId, (state == null ? null : Subscription.State.valueOf(state)), isRequired);
|
||||
|
|
Loading…
Reference in a new issue