TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.36k stars 1.58k forks source link

Crash reported by Baelor #3630

Closed amaze-issue-automation[bot] closed 2 years ago

amaze-issue-automation[bot] commented 2 years ago

Issue explanation (write below this line)

Hi there, I tried to open a link to a local folder fromthe synthing-fork application and this is what happened. Regards, Baelor

Exception

java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.amaze.filemanager/com.amaze.filemanager.ui.activities.MainActivity}: 
java.lang.IllegalArgumentException: URI must start with content://. URI 
was [file:///storage/emulated/0/Backups/Home%20Assistant]
at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3707)
at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
at 
android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at 
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at 
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
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:7870)
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:1003)
Caused by: java.lang.IllegalArgumentException: URI must start with 
content://. URI was [file:///storage/emulated/0/Backups/Home%20Assistant]
at 
com.amaze.filemanager.filesystem.files.FileUtils.fromContentUri(FileUtils.java:1035)
at 
com.amaze.filemanager.ui.activities.MainActivity.checkForExternalIntent(MainActivity.java:578)
at 
com.amaze.filemanager.ui.activities.MainActivity.onCreate(MainActivity.java:371)
at android.app.Activity.performCreate(Activity.java:8057)
at android.app.Activity.performCreate(Activity.java:8037)
at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1345)
at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
... 12 more

VishnuSanal commented 2 years ago

dupe #3363 & fixed with #3454