This PR fixes the following crash. We shouldn't iterate the list if the cursor points out of it.
IndexOutOfBoundsException: Index: 10, Size: 0
at java.util.LinkedList.checkElementIndex(LinkedList.java:559)
at java.util.LinkedList.remove(LinkedList.java:529)
at org.wordpress.aztec.History.doHandleHistory(History.kt:65)
at org.wordpress.aztec.History$HistoryRunnable.run(History.kt:0)
at android.os.Handler.handleCallback(Handler.java:938)
Test
I think this is a race condition so there is no way to test this
Review
@khaykov
Make sure strings will be translated:
[x] If there are new strings that have to be translated, I have added them to the client's strings.xml as a part of the integration PR.
Fix
This PR fixes the following crash. We shouldn't iterate the list if the cursor points out of it.
Test
Review
@khaykov
Make sure strings will be translated:
strings.xml
as a part of the integration PR.