Smack/smack-im/src/main
spslinger 1e21ab763c
Fix getPresence ConcurrentModificationException
Fix for SMACK-841

Since Smack 4.2.4, the getPresencesInternal method in the Roster class
can return a LruCache object, which is a LinkedHashMap with access
order. This means that any access using get or getOrDefault will be a
modification of the Map. If you loop over the keySet of the Map and
there are more than one, the second call to get will throw a
ConcurrentModificationException!

Since the keys are only used here to obtain the corresponding
values, the simplest solution is to just loop over the values instead.
2018-10-11 12:29:32 +02:00
..
java/org/jivesoftware/smack Fix getPresence ConcurrentModificationException 2018-10-11 12:29:32 +02:00
resources/org.jivesoftware.smack.im Added support for pre-approved subscription requests (RFC 6121 § 3.4) 2015-03-19 11:31:05 +01:00