java.lang.RuntimeException: Unable to pause activity {org.dayup.gtask/org.dayup.gtask.activity.TaskActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0


Samebug tips

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


7 months ago
Expert tip

Solutions on the web

Solution icon of github
Unable to pause activity {com.iheanyiekechukwu.tubalr/com.iheanyiekechukwu.tubalr.PlaylistActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

Solution icon of github
Unable to pause activity {com.iheanyiekechukwu.tubalr/com.iheanyiekechukwu.tubalr.PlaylistActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

Solution icon of github
Unable to pause activity {com.iheanyiekechukwu.tubalr/com.iheanyiekechukwu.tubalr.PlaylistActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

Solution icon of web
Unable to pause activity {org.wikipedia.alpha/org.wikipedia.page.PageActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1

Solution icon of stackoverflow
via Stack Overflow by Juan
, 1 year ago
Unable to pause activity {bhavik.smart.shopping/bhavik.smart.shopping.NoteEdit}: java.lang.NumberFormatException: Invalid int: ""

Solution icon of appcelerator
via Appcelerator JIRA by Lokesh Choudhary, 1 year ago
Unable to pause activity {com.app.xalloy/com.app.xalloy.XalloyActivity}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to pause activity {com.ndroidstudios.android.taskreminder/com.ndroidstudios.android.taskreminder.ReminderEditActivity}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to pause activity {com.smarte.smartipcontrol/com.smarte.smartipcontrol.IPEntry}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to pause activity {com.example.storyteller/com.example.storyteller.Ricitos}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to pause activity {com.abc.abc/com.abc.abc.ActivityA}: java.lang.NullPointerException

Stack trace

java.lang.RuntimeException: Unable to pause activity {org.dayup.gtask/org.dayup.gtask.activity.TaskActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2717)
	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2673)
	at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2651)
	at android.app.ActivityThread.access$800(ActivityThread.java:127)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1165)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:4517)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:985)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:752)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
	at java.util.ArrayList.get(ArrayList.java:304)
	at org.dayup.gtask.activity.cc.a(TaskEditorViewFragment.java:1463)
	at org.dayup.gtask.activity.TaskEditorViewFragment.onPause(TaskEditorViewFragment.java:421)
	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:932)
	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1080)
	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
	at android.support.v4.app.FragmentManagerImpl.dispatchPause(FragmentManager.java:1824)
	at android.support.v4.app.FragmentActivity.onPause(FragmentActivity.java:391)
	at com.actionbarsherlock.app.SherlockFragmentActivity.onPause(SherlockFragmentActivity.java:79)
	at org.dayup.activities.CommonActivity.onPause(CommonActivity.java:167)
	at org.dayup.gtask.activity.TaskActivity.onPause(TaskActivity.java:215)
	at android.app.Activity.performPause(Activity.java:4568)
	at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1198)
	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2704)
	... 12 more

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

6 times, 1 year ago
2 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
4 times, 1 week ago
256 more bugmates