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 web

Solution icon of stackoverflow
via Stack Overflow by Denny Kurniawan
, 9 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
via Stack Overflow by Loris
, 1 year ago
Index 0 out of range [0..0)

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

Solution icon of github
via GitHub by ianchan0817
, 1 year ago
Index 0 out of range [0..0)

Solution icon of github
via GitHub by kueda
, 8 months ago
Index 0 out of range [0..0)

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
Index 0 out of range [0..0)

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

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

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, 11 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