0
現在,我正在開發一個JSON項目。全部JSON值存儲在sqlLite數據庫中,並顯示列表視圖。某些值正確顯示,並且在下面顯示錯誤的那一刻。請幫幫我。如何解決致命異常錯誤?
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): FATAL EXCEPTION: main
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at java.util.ArrayList.get(ArrayList.java:311)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at ez.com.Action_module_screen.database(Action_module_screen.java:2443)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at ez.com.Action_module_screen$2.handleMessage(Action_module_screen.java:623)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at android.os.Handler.dispatchMessage(Handler.java:99)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at android.os.Looper.loop(Looper.java:123)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at android.app.ActivityThread.main(ActivityThread.java:4627)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at java.lang.reflect.Method.invokeNative(Native Method)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at java.lang.reflect.Method.invoke(Method.java:521)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
12-08 19:00:27.818: ERROR/AndroidRuntime(1042): at dalvik.system.NativeStart.main(Native Method)