Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when opening archive files from other apps #1225

Closed
FooIbar opened this issue May 8, 2024 · 0 comments
Closed

Crash when opening archive files from other apps #1225

FooIbar opened this issue May 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@FooIbar
Copy link

FooIbar commented May 8, 2024

Version: 1.7.2
Stack trace:

java.lang.NullPointerException
	at me.zhanghai.android.files.provider.common.AbstractPath.getParent(AbstractPath.kt:24)
	at me.zhanghai.android.files.provider.common.AbstractPath.getParent(AbstractPath.kt:14)
	at me.zhanghai.android.files.filelist.TrailData$Companion.createTrail(TrailData.kt:76)
	at me.zhanghai.android.files.filelist.TrailData$Companion.of(TrailData.kt:60)
	at me.zhanghai.android.files.filelist.TrailLiveData.resetTo(TrailLiveData.kt:23)
	at me.zhanghai.android.files.filelist.FileListViewModel.resetTo(FileListViewModel.kt:35)
	at me.zhanghai.android.files.filelist.FileListFragment.onActivityCreated(FileListFragment.kt:338)
@FooIbar FooIbar changed the title Crash when opening downloaded file from Chrome Crash when opening archive files from other apps May 9, 2024
@zhanghai zhanghai self-assigned this May 18, 2024
@zhanghai zhanghai added the bug Something isn't working label May 18, 2024
@zhanghai zhanghai added this to the v1.7.3 milestone May 18, 2024
Citrinae-Lime added a commit to Citrinae-Lime/MaterialFiles.Sora-Editor that referenced this issue May 24, 2024
commit 88b66e0
Author: Hai Zhang <dreaming.in.code.zh@gmail.com>
Date:   Wed May 22 02:23:01 2024 -0700

    Build: Update to Kotlin 2.0 and update other dependencies

commit 114b6ce
Author: Hai Zhang <dreaming.in.code.zh@gmail.com>
Date:   Mon May 20 19:36:34 2024 -0700

    Build: Update AGP

commit 4f1747c
Author: Hai Zhang <dreaming.in.code.zh@gmail.com>
Date:   Sat May 18 16:12:39 2024 -0700

    Fix: Fix crash when opening archive files with content path

    By fixing Path.getParent() which shouldn't depend on Path.getRoot().

    Fixes: zhanghai#1225

commit 4cd7710
Author: Hai Zhang <dreaming.in.code.zh@gmail.com>
Date:   Fri May 3 09:13:28 2024 -0700

    Build: Update dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants