Use an iterator in removeChannelNotifications rather than index.
The index-based implementation is buggy because if an element is removed from the list, the current index will be incorrect, thus both skipping over an element and potentially running off the end of the list. This change also modifies ArchiveTest to test these edge cases. Test: atest ArchiveTest (before & after change) Bug: 186473453 Change-Id: I1611aa6d3630beef60f916d59a76c7976f1648d2
Loading
Please register or sign in to comment