StringIndexOutOfBoundsException
on FileUtils#fromContentUri
#4242
Labels
From-telegram
Issue reported through telegram channel
Issue-Bug
Related unexpected behavior or something worth investigating.
Issue explanation (write below this line)
Exception
Crash log
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amaze.filemanager/com.amaze.filemanager.ui.activities.MainActivity}: java.lang.StringIndexOutOfBoundsException: length=9; index=13
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3645)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:138)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7924)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.StringIndexOutOfBoundsException: length=9; index=13
at java.lang.String.substring(String.java:2429)
at com.amaze.filemanager.filesystem.files.FileUtils.fromContentUri(FileUtils.java:1018)
at com.amaze.filemanager.ui.activities.MainActivity.checkForExternalIntent(MainActivity.java:617)
at com.amaze.filemanager.ui.activities.MainActivity.onCreate(MainActivity.java:395)
at android.app.Activity.performCreate(Activity.java:8342)
at android.app.Activity.performCreate(Activity.java:8321)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626)
... 12 more
Reporter: Yufusi1
The text was updated successfully, but these errors were encountered: