Commit 377b5d85 authored by Robin Collier's avatar Robin Collier Committed by rcollier

OF-12 Changed list to modifiable

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11275 b35dd754-fafc-0310-a699-88a17e54d16e
parent 72a55925
......@@ -251,7 +251,9 @@ public class NodeAffiliate {
for (PublishedItem publishedItem : subsByItem.keySet()) {
affectedSubscriptions = itemsBySubs.get(subsByItem.get(publishedItem));
if (affectedSubscriptions == null) {
itemsBySubs.put(subsByItem.get(publishedItem), Arrays.asList(publishedItem));
List<PublishedItem> items = new ArrayList<PublishedItem>(publishedItems.size());
items.add(publishedItem);
itemsBySubs.put(subsByItem.get(publishedItem), items);
}
else {
affectedSubscriptions.add(publishedItem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment