Even with the fix, I was able to crash it again at another spot:
E/AndroidRuntime( 5121): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.tomdroid/org.tomdroid.ui.ViewNote}: java.util.ConcurrentModificationException
E/AndroidRuntime( 5121): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2141)
E/AndroidRuntime( 5121): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2157)
E/AndroidRuntime( 5121): at android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime( 5121): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581)
E/AndroidRuntime( 5121): at android.os.Handler.dispatchMessage(Handler.java:88)
E/AndroidRuntime( 5121): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 5121): at android.app.ActivityThread.main(ActivityThread.java:3739)
E/AndroidRuntime( 5121): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5121): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 5121): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime( 5121): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
E/AndroidRuntime( 5121): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5121): Caused by: java.util.ConcurrentModificationException
E/AndroidRuntime( 5121): at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:59)
E/AndroidRuntime( 5121): at org.tomdroid.NoteCollection.buildNoteLinkifyPattern(NoteCollection.java:113)
E/AndroidRuntime( 5121): at org.tomdroid.ui.ViewNote.showNote(ViewNote.java:161)
E/AndroidRuntime( 5121): at org.tomdroid.ui.ViewNote.onCreate(ViewNote.java:102)
E/AndroidRuntime( 5121): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
E/AndroidRuntime( 5121): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2104)
E/AndroidRuntime( 5121): ... 11 more
Even with the fix, I was able to crash it again at another spot:
E/AndroidRuntime( 5121): java.lang. RuntimeExceptio n: Unable to start activity ComponentInfo{ org.tomdroid/ org.tomdroid. ui.ViewNote} : java.util. ConcurrentModif icationExceptio n app.ActivityThr ead.performLaun chActivity( ActivityThread. java:2141) app.ActivityThr ead.handleLaunc hActivity( ActivityThread. java:2157) app.ActivityThr ead.access$ 1800(ActivityTh read.java: 112) app.ActivityThr ead$H.handleMes sage(ActivityTh read.java: 1581) os.Handler. dispatchMessage (Handler. java:88) os.Looper. loop(Looper. java:123) app.ActivityThr ead.main( ActivityThread. java:3739) reflect. Method. invokeNative( Native Method) reflect. Method. invoke( Method. java:515) internal. os.ZygoteInit$ MethodAndArgsCa ller.run( ZygoteInit. java:739) internal. os.ZygoteInit. main(ZygoteInit .java:497) system. NativeStart. main(Native Method) ConcurrentModif icationExceptio n AbstractList$ SimpleListItera tor.next( AbstractList. java:59) NoteCollection. buildNoteLinkif yPattern( NoteCollection. java:113) ui.ViewNote. showNote( ViewNote. java:161) ui.ViewNote. onCreate( ViewNote. java:102) app.Instrumenta tion.callActivi tyOnCreate( Instrumentation .java:1122) app.ActivityThr ead.performLaun chActivity( ActivityThread. java:2104)
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): at java.lang.
E/AndroidRuntime( 5121): at java.lang.
E/AndroidRuntime( 5121): at com.android.
E/AndroidRuntime( 5121): at com.android.
E/AndroidRuntime( 5121): at dalvik.
E/AndroidRuntime( 5121): Caused by: java.util.
E/AndroidRuntime( 5121): at java.util.
E/AndroidRuntime( 5121): at org.tomdroid.
E/AndroidRuntime( 5121): at org.tomdroid.
E/AndroidRuntime( 5121): at org.tomdroid.
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): at android.
E/AndroidRuntime( 5121): ... 11 more
I'll see what I can do about this one.