Skip to content

Crash on exists check #10

@ItzNotABug

Description

@ItzNotABug

Hello @ItzNotABug,
Thanks for this optimization, which makes my life so much easier!
However I reproduce the problem when the file associated with the uri has been deleted. The original lib returns a DocumentFile on which I can perform an exists() which returns false, the DocumentFileCompat crashes with the error message java.lang.IllegalArgumentException: Failed to determine if primary:Pictures/xxxxxxxxxxxx is child of primary:Pictures/xxxxxxxxx java.io.FileNotFoundException: Missing file for primary:Pictures/xxxxxxxxxx

Do you have an idea for fixing the lib aside catch the exception in my app? Thanks a lot!

Originally posted by @provalinf in #6 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions