java.lang.ArrayIndexOutOfBoundsException: rowIndex > available rows: 4 > 4

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.ArrayIndexOutOfBoundsException: rowIndex > available rows: 4 > 4
at io.realm.internal.TableView.nativeRemoveRow(TableView.java)
at io.realm.internal.TableView.remove(TableView.java:405)
at io.realm.RealmResults.deleteFromRealm(RealmResults.java:246)
at removed.SavedMediaRecyclerViewAdapter$8.onClick(SavedMediaRecyclerViewAdapter.java:288)
at cn.pedant.SweetAlert.SweetAlertDialog.onClick(SweetAlertDialog.java:372)
at android.view.View.performClick(View.java:4240)
at android.view.View$PerformClick.run(View.java:17721)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5199)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at dalvik.system.NativeStart.main(NativeStart.java)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.