Incognoto / incognoto

Take control of your personal data with Incognoto, your secure incognito notes.
https://play.google.com/store/apps/details?id=com.notes.incognoto
GNU General Public License v2.0
4 stars 1 forks source link

Crash when deleting a note with multiple tags #27

Closed Collinux closed 6 years ago

Collinux commented 6 years ago

If you only have one tag then this issue does not occur, but more than one tag in a single note leads to a crash.

Steps to reproduce:

  1. Add a new note with more than one tag, for example "#this #crashes"
  2. Save the note
  3. Delete the note

Logcat output:

java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.next(ArrayList.java:860)
at com.notes.sum.sec.TagManager.addTags(TagManager.java:33)
at com.notes.sum.sec.TagManager.removeTags(TagManager.java:88)
at com.notes.sum.sec.NoteManager.removeNote(NoteManager.java:94)
at com.notes.sum.ActivityMain$6.onClick(ActivityMain.java:219)