java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) at java.util.Objects.checkIndex(Objects.java:359) at java.util.ArrayList.get(ArrayList.java:434) at com.entitcs.office_attendance.activities.My_Attendance_Report.R(Unknown Source:57) at x4.a1.onDetach(Unknown Source:43) at androidx.fragment.app.Fragment.performDetach(Unknown Source:6) at androidx.fragment.app.v.i(Unknown Source:33) at androidx.fragment.app.v.m(Unknown Source:235) at androidx.fragment.app.e0$d.c(Unknown Source:5) at androidx.fragment.app.e0$e.d(Unknown Source:16) at androidx.fragment.app.c$l.a(Unknown Source:4) at androidx.fragment.app.c.w(Unknown Source:42) at androidx.fragment.app.c.f(Unknown Source:162) at androidx.fragment.app.e0.g(Unknown Source:145) at androidx.fragment.app.n.e0(Unknown Source:315) at androidx.fragment.app.n.f1(Unknown Source:84) at androidx.fragment.app.n.Z0(Unknown Source:47) at androidx.fragment.app.n.Y0(Unknown Source:3) at androidx.fragment.app.n.C0(Unknown Source:12) at androidx.fragment.app.n$c.handleOnBackPressed(Unknown Source:2) at androidx.activity.OnBackPressedDispatcher.c(Unknown Source:24) at androidx.activity.ComponentActivity.onBackPressed(Unknown Source:2) at com.entitcs.office_attendance.activities.My_Attendance_Report.onBackPressed(Unknown Source:0) at android.app.Activity.onKeyUp(Activity.java:4074) at android.view.KeyEvent.dispatch(KeyEvent.java:2959) at android.app.Activity.dispatchKeyEvent(Activity.java:4448) at androidx.core.app.f.superDispatchKeyEvent(Unknown Source:0) at a1.g.e(Unknown Source:10) at androidx.core.app.f.dispatchKeyEvent(Unknown Source:18) at androidx.appcompat.app.d.dispatchKeyEvent(Unknown Source:22) at h.j.dispatchKeyEvent(Unknown Source:2) at androidx.appcompat.app.g$m.dispatchKeyEvent(Unknown Source:8) at h.j.dispatchKeyEvent(Unknown Source:2) at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:434) at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:7652) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7513) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6926) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6988) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6949) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:7119) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6957) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:7176) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6930) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6988) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6949) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6957) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6930) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6988) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6949) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:7152) at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:7363) at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:4484) at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:3913) at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:3904) at android.view.inputmethod.InputMethodManager.-$$Nest$mfinishedInputEvent(Unknown Source:0) at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:4461) at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:154) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:350) at android.os.Looper.loopOnce(Looper.java:187) at android.os.Looper.loop(Looper.java:368) at android.app.ActivityThread.main(ActivityThread.java:8839) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)