-
Notifications
You must be signed in to change notification settings - Fork 343
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
SuFile.isDirectory() can throw NoShellException (and shouldn't) #131
Comments
I think this is expected behavior and it is the developer's responsibility to check that the shell is valid before using it. |
I personally disagree that I already did my best do avoid calling But this is mainly a mater of opinion, so I understand the disagreement. |
Well, |
Well, I reported this because |
Due to
SuFile.isDirectory()
callSuFile.cmdBool()
callSuFile.getShell()
callShell.getShell()
callMainShell.get()
callBuilderImpl.build()
that can throwNoShellException
and can causes crashes as it is a common assumption thatFile.isDirectory()
does not throw any errors.This is very obscure effect was discovered by someone using my app that use libsu.
The text was updated successfully, but these errors were encountered: