Skip to content
Commit acbca16c authored by Yuri Lin's avatar Yuri Lin
Browse files

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
parent f10473c6
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