java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.amaze.fileutilities/com.amaze.fileutilities.video_player.VideoPlayerDialogActivity}:
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 6
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4164)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
at
android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
at
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8893)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end -1,
length 6
at java.lang.String.checkBoundsBeginEnd(String.java:4466)
at java.lang.String.substring(String.java:2517)
at com.amaze.fileutilities.video_player.a.t0(BaseVideoPlayerActivity.kt:82)
at
com.amaze.fileutilities.video_player.a.onCreate(BaseVideoPlayerActivity.kt:228)
at
com.amaze.fileutilities.video_player.VideoPlayerDialogActivity.onCreate(VideoPlayerDialogActivity.kt:1)
at android.app.Activity.performCreate(Activity.java:8935)
at android.app.Activity.performCreate(Activity.java:8904)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
... 12 more
Issue explanation (write below this line)
Exception
Crash log