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 using with image_picker #22

Open
gontarczuk opened this issue Jun 10, 2020 · 0 comments
Open

Crash when using with image_picker #22

gontarczuk opened this issue Jun 10, 2020 · 0 comments

Comments

@gontarczuk
Copy link

gontarczuk commented Jun 10, 2020

I'm using image_picker for video and christian_picker_image for photos.

My app crashed because of christian_picker_image in the following scenario - when I entered the camera screen or gallery screen from image_picker and pressed "back", the app crashed because of null value of data in the following line in file ChristianPickerImagePlugin.kt:
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent): Boolean {

I had to fork it and change it to:
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent ?): Boolean {

Some of the logs:
Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter data
E/AndroidRuntime(20695): at com.christian.christian_picker_image.ChristianPickerImagePlugin.onActivityResult(Unknown Source:2)

If you need more logs, I will try to replicate it and paste more.

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