org.json.JSONException

Index 0 out of range [0..0) 01-12 10:58:57.047 17527-17527/com.example.client18.androidwithcodeigniter W/System.err:


Solutions on the web908

Solution icon of stackoverflow
via Stack Overflow by Denny Kurniawan
, 7 months ago
Index 0 out of range [0..0) 01-12 10:58:57.047 17527-17527/com.example.client18.androidwithcodeigniter W/System.err:

Solution icon of stackoverflow
Index 0 out of range [0..0) 03-06 18:12:09.570: W/System.err(10908): at org.json.JSONArray.get(JSONArray.java:282)

Solution icon of github
Index 0 out of range [0..0) 04-19 07:58:49.551: W/System.err(3105): at org.json.JSONArray.get(JSONArray.java:263) 04-19 07:58:49.551: W/System.err(3105): at org.json.JSONArray.getJSONObject(JSONArray.java:480) 04-19 07:58:49.555: W/System.err(3105

Solution icon of web
Index 0 out of range [0..0) 04-19 07:58:49.551: W/System.err(3105): at org.json.JSONArray.get(JSONArray.java:263) 04-19 07:58:49.551: W/System.err(3105): at org.json.JSONArray.getJSONObject(JSONArray.java:480) 04-19 07:58:49.555: W

Solution icon of github
Index 0 out of range [0..0) 07-31 21:10:26.131: W/System.err(1443): at org.json.JSONArray.get(JSONArray.java:263) 07-31 21:10:26.135: W/System.err(1443): at org.json.JSONArray.getJSONObject(JSONArray.java:480) 07-31 21:10:26.135: W/System.err(1443

Solution icon of stackoverflow
Index 0 out of range [0..0)

Solution icon of stackoverflow
Index 7 out of range [0..5) 09-09 02:22:38.368: W/System.err(276): at org.json.JSONArray.get(JSONArray.java:263)

Solution icon of github
Index 0 out of range [0..0)

Solution icon of github
Index 0 out of range [0..0)

Solution icon of stackoverflow
via Stack Overflow by Loris
, 1 year ago
Index 0 out of range [0..0)

Stack trace

  • org.json.JSONException: Index 0 out of range [0..0) 01-12 10:58:57.047 17527-17527/com.example.client18.androidwithcodeigniter W/System.err: at org.json.JSONArray.get(JSONArray.java:282) at org.json.JSONArray.getJSONObject(JSONArray.java:510) at com.example.client18.androidwithcodeigniter.UploadImage.onCreate(UploadImage.java:78) at android.app.Activity.performCreate(Activity.java:5336) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5021) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) at dalvik.system.NativeStart.main(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

3 times, 9 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
2099 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 more bugmates