robhinds / AndroidChuckQuiz

Walkthrough for Android Chuck Quiz app
http://automateddeveloper.blogspot.com
28 stars 34 forks source link

App crashes #1

Open Husseinovich opened 12 years ago

Husseinovich commented 12 years ago

The app crashes on pressing the play button. I get the following logcat message. what could be the problem, Please help.

11-13 17:50:18.162: I/Process(443): Sending signal. PID: 443 SIG: 9 11-13 17:53:12.222: D/dalvikvm(478): GC_EXTERNAL_ALLOC freed 47K, 53% free 2555K/5379K, external 411K/517K, paused 101ms 11-13 17:53:14.863: D/AndroidRuntime(478): Shutting down VM 11-13 17:53:14.863: W/dalvikvm(478): threadid=1: thread exiting with uncaught exception (group=0x40015560) 11-13 17:53:14.883: E/AndroidRuntime(478): FATAL EXCEPTION: main 11-13 17:53:14.883: E/AndroidRuntime(478): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tmm.android.chuck/com.tmm.android.chuck.QuestionActivity}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0 11-13 17:53:14.883: E/AndroidRuntime(478): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 11-13 17:53:14.883: E/AndroidRuntime(478): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 11-13 17:53:14.883: E/AndroidRuntime(478): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 11-13 17:53:14.883: E/AndroidRuntime(478): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 11-13 17:53:14.883: E/AndroidRuntime(478): at android.os.Handler.dispatchMessage(Handler.java:99) 11-13 17:53:14.883: E/AndroidRuntime(478): at android.os.Looper.loop(Looper.java:123) 11-13 17:53:14.883: E/AndroidRuntime(478): at android.app.ActivityThread.main(ActivityThread.java:3683) 11-13 17:53:14.883: E/AndroidRuntime(478): at java.lang.reflect.Method.invokeNative(Native Method) 11-13 17:53:14.883: E/AndroidRuntime(478): at java.lang.reflect.Method.invoke(Method.java:507) 11-13 17:53:14.883: E/AndroidRuntime(478): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 11-13 17:53:14.883: E/AndroidRuntime(478): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 11-13 17:53:14.883: E/AndroidRuntime(478): at dalvik.system.NativeStart.main(Native Method) 11-13 17:53:14.883: E/AndroidRuntime(478): Caused by: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0 11-13 17:53:14.883: E/AndroidRuntime(478): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257) 11-13 17:53:14.883: E/AndroidRuntime(478): at java.util.ArrayList.get(ArrayList.java:311) 11-13 17:53:14.883: E/AndroidRuntime(478): at com.tmm.android.chuck.quiz.GamePlay.getNextQuestion(GamePlay.java:112) 11-13 17:53:14.883: E/AndroidRuntime(478): at com.tmm.android.chuck.QuestionActivity.onCreate(QuestionActivity.java:39) 11-13 17:53:14.883: E/AndroidRuntime(478): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 11-13 17:53:14.883: E/AndroidRuntime(478): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)

poyger commented 11 years ago

have the same problem, any solution on this ?