-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QuestionFragment.ClassificationInProgress: Do some defensive copying.
Return copies of lists and copy lists in constructors. This is to avoid concurrent changes when, for instance, the answers List changes while we are iterating over it. It's not clear when that might happen, but we call getAnswers() from AsyncTask(), so it seems possible. There is at least one report of a ConcurrentModificationException so this might help: #15
- Loading branch information
Showing
1 changed file
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters