Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentModificationException #2

Closed
pocmo opened this issue Mar 11, 2010 · 2 comments
Closed

ConcurrentModificationException #2

pocmo opened this issue Mar 11, 2010 · 2 comments
Labels

Comments

@pocmo
Copy link
Owner

pocmo commented Mar 11, 2010

The LinkedList used in some classes is not synchronized. As these lists may be accessed by more than one thread the iterator will throw ConcurrentModificationExceptions causing the application to "force close".

The relevant parts that access these list have to be synchronized or another list implementation has to be used.

See: http://java.sun.com/javase/6/docs/api/java/util/LinkedList.html

@pocmo
Copy link
Owner Author

pocmo commented Mar 11, 2010

The exception is currently always thrown at this part of the code:
for (Message message : conversation.getHistory()) {
messages.add(message.renderTextView(context));
}

@pocmo
Copy link
Owner Author

pocmo commented Mar 11, 2010

Should be fixed in commits 14ca3e0 and 733ecd7 :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant