Smack/smack-im/src/main/java/org/jivesoftware/smack/roster
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
..
packet Enable trailing whitespace checkstyle check 2018-05-09 23:26:39 +02:00
provider Add missing package-info descriptions. 2018-02-21 16:47:11 +01:00
rosterstore Change Element.toXml() to toXml(String enclosingNamespace) 2018-04-27 10:05:25 +02:00
AbstractPresenceEventListener.java Add CustomImportOrder checkstyle rule 2017-06-14 17:12:43 +02:00
AbstractRosterListener.java Add CustomImportOrder checkstyle rule 2017-06-14 17:12:43 +02:00
PresenceEventListener.java Fix minor codestyle issues 2017-12-17 11:03:46 +01:00
Roster.java Fix getPresence ConcurrentModificationException 2018-10-11 12:29:32 +02:00
RosterEntries.java Fix minor codestyle issues 2017-12-17 11:03:46 +01:00
RosterEntry.java Enable trailing whitespace checkstyle check 2018-05-09 23:26:39 +02:00
RosterGroup.java Enable trailing whitespace checkstyle check 2018-05-09 23:26:39 +02:00
RosterListener.java Enable trailing whitespace checkstyle check 2018-05-09 23:26:39 +02:00
RosterLoadedListener.java Fix minor codestyle issues 2017-12-17 11:03:46 +01:00
RosterUtil.java Add RosterUtil.preApproveSubscriptionIfRequiredAndPossible() 2017-11-06 22:39:10 +01:00
SubscribeListener.java Fix minor codestyle issues 2017-12-17 11:03:46 +01:00
package-info.java Add missing package-info descriptions. 2018-02-21 16:47:11 +01:00