Florian Schmaus e141de9aa4 Fix possible NPE in roster push listener
Daniele Ricci reporting the following NPE using Smack 4.1.9

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.indexOf(int)' on a null object reference
       at org.jxmpp.util.XmppStringUtils.parseBareJid(
       at org.jivesoftware.smack.roster.Roster$RosterPushListener.handleIQRequest(
       at org.jivesoftware.smack.AbstractXMPPConnection$
       at java.util.concurrent.ThreadPoolExecutor.runWorker(
       at java.util.concurrent.ThreadPoolExecutor$

This is possibly caused by a service sending roster pushes for unbound
connections, i.e. where getUsers() returns 'null'. We now log such
situations instead throwing an NPE.
2017-03-10 17:47:13 +01:00
java/org/jivesoftware/smack Fix possible NPE in roster push listener 2017-03-10 17:47:13 +01:00
resources/ Added support for pre-approved subscription requests (RFC 6121 § 3.4) 2015-03-19 11:31:05 +01:00