Fix for bug modifying immutable list.

This commit is contained in:
Moxie Marlinspike 2014-02-24 14:19:43 -08:00
parent e8a0fac05b
commit 559228af5b

View File

@ -338,7 +338,7 @@ public class SessionRecordV2 extends Record {
return null;
}
List<Chain.MessageKey> messageKeyList = chain.getMessageKeysList();
List<Chain.MessageKey> messageKeyList = new LinkedList<Chain.MessageKey>(chain.getMessageKeysList());
Iterator<Chain.MessageKey> messageKeyIterator = messageKeyList.iterator();
MessageKeys result = null;