Closed mackrauss closed 9 years ago
08-19 15:51:02.845: E/AndroidRuntime(5230): FATAL EXCEPTION: main
08-19 15:51:02.845: E/AndroidRuntime(5230): java.lang.IllegalStateException: Could not execute method of the activity
08-19 15:51:02.845: E/AndroidRuntime(5230): at android.view.View$1.onClick(View.java:3591)
08-19 15:51:02.845: E/AndroidRuntime(5230): at android.view.View.performClick(View.java:4084)
08-19 15:51:02.845: E/AndroidRuntime(5230): at android.view.View$PerformClick.run(View.java:16966)
08-19 15:51:02.845: E/AndroidRuntime(5230): at android.os.Handler.handleCallback(Handler.java:615)
08-19 15:51:02.845: E/AndroidRuntime(5230): at android.os.Handler.dispatchMessage(Handler.java:92)
08-19 15:51:02.845: E/AndroidRuntime(5230): at android.os.Looper.loop(Looper.java:137)
08-19 15:51:02.845: E/AndroidRuntime(5230): at android.app.ActivityThread.main(ActivityThread.java:4745)
08-19 15:51:02.845: E/AndroidRuntime(5230): at java.lang.reflect.Method.invokeNative(Native Method)
08-19 15:51:02.845: E/AndroidRuntime(5230): at java.lang.reflect.Method.invoke(Method.java:511)
08-19 15:51:02.845: E/AndroidRuntime(5230): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
08-19 15:51:02.845: E/AndroidRuntime(5230): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-19 15:51:02.845: E/AndroidRuntime(5230): at dalvik.system.NativeStart.main(Native Method)
08-19 15:51:02.845: E/AndroidRuntime(5230): Caused by: java.lang.reflect.InvocationTargetException
08-19 15:51:02.845: E/AndroidRuntime(5230): at java.lang.reflect.Method.invokeNative(Native Method)
08-19 15:51:02.845: E/AndroidRuntime(5230): at java.lang.reflect.Method.invoke(Method.java:511)
08-19 15:51:02.845: E/AndroidRuntime(5230): at android.view.View$1.onClick(View.java:3586)
08-19 15:51:02.845: E/AndroidRuntime(5230): ... 11 more
08-19 15:51:02.845: E/AndroidRuntime(5230): Caused by: java.lang.IndexOutOfBoundsException: Invalid index 14, size is 12
08-19 15:51:02.845: E/AndroidRuntime(5230): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
08-19 15:51:02.845: E/AndroidRuntime(5230): at java.util.ArrayList.get(ArrayList.java:304)
08-19 15:51:02.845: E/AndroidRuntime(5230): at org.chat.android.CHADelivery.updateDisplayedFragment(CHADelivery.java:90)
08-19 15:51:02.845: E/AndroidRuntime(5230): at org.chat.android.CHADelivery.moveNext(CHADelivery.java:171)
08-19 15:51:02.845: E/AndroidRuntime(5230): ... 14 more
Fixed with commit 526f0859ab36e4708a2100ccd72bdcecb321bcca
Nice find
On Tue, Aug 19, 2014 at 4:03 PM, Armin Krauss notifications@github.com wrote:
Fixed with commit 526f085 https://github.com/chat-health/chat.android/commit/526f0859ab36e4708a2100ccd72bdcecb321bcca
— Reply to this email directly or view it on GitHub https://github.com/chat-health/chat.android/issues/5#issuecomment-52690341 .
Colin
Hope it solves the problem permanently, but after the fix I couldn't create the exception anymore, while before the fix I could reliably run into the problem.
When going through a Child Health Assessment that was previously filled out very fast with next button the app crashes due to:
java.lang.IndexOutOfBoundsException: Invalid index 14, size is 12