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 the Uri has "content://" scheme #63

Open
atomofiron opened this issue Aug 31, 2020 · 0 comments
Open

Crash when the Uri has "content://" scheme #63

atomofiron opened this issue Aug 31, 2020 · 0 comments

Comments

@atomofiron
Copy link

val intent = Intent(Intent.ACTION_GET_CONTENT)
intent.type = "image/*"
startActivityForResult(Intent.createChooser(intent, "Pick a photo"), 777)

uri = content://com.android.providers.media.documents/document/image%3A146630

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference
        at com.steelkiwi.cropiwa.image.CropIwaBitmapManager.isWebUri(CropIwaBitmapManager.java:285)
        at com.steelkiwi.cropiwa.image.CropIwaBitmapManager.toLocalUri(CropIwaBitmapManager.java:150)
        at com.steelkiwi.cropiwa.image.CropIwaBitmapManager.loadToMemory(CropIwaBitmapManager.java:117)
        at com.steelkiwi.cropiwa.image.CropImageTask.doInBackground(CropImageTask.java:41)
        at com.steelkiwi.cropiwa.image.CropImageTask.doInBackground(CropImageTask.java:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant