christian_picker_image
christian_picker_image copied to clipboard
Crash when using with image_picker
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.