nguyenhoanglam / ImagePicker

A customizable library for selecting images on the device.
Apache License 2.0
598 stars 158 forks source link

Version 1.5.1 - Caused by java.lang.NullPointerException Issue #141

Closed MxitarHakobyan closed 2 years ago

MxitarHakobyan commented 2 years ago

Hi dear @nguyenhoanglam and contributors Thanks for a great library

There is an exception described below

Version 1.5.1

Caused by java.lang.NullPointerException com.nguyenhoanglam.imagepicker.ui.camera.CameraModule.reset (CameraModule.kt:167) com.nguyenhoanglam.imagepicker.ui.camera.CameraModule.saveImage (CameraModule.kt:103) com.nguyenhoanglam.imagepicker.ui.camera.CameraActivity.resultLauncher$lambda-0 (CameraActivity.kt:43) com.nguyenhoanglam.imagepicker.ui.camera.CameraActivity.$r8$lambda$OpgwlAmYqKa63j4JRkPIf8IIDyg com.nguyenhoanglam.imagepicker.ui.camera.CameraActivity$$ExternalSyntheticLambda2.onActivityResult (Unknown Source:4)

I think that reason from code mentioned in screenshots below

Screenshot 2022-04-07 020542

Screenshot 2022-04-07 020707

twnth commented 2 years ago

i have same issue, plz fix this asap

nguyenhoanglam commented 2 years ago

@MxitarHakobyan @twnth Hi guys, following @MxitarHakobyan debug code, I've just released v1.5.2 which contains a null safety condition. Please check it out and let me know if it works. Thanks for supporting the library!

twnth commented 2 years ago

@nguyenhoanglam Thanks for your quick resolution. NPE in landscape mode is now resolved. But now when I click the OK button after taking a picture in landscape mode, it doesn't go to the next

MxitarHakobyan commented 2 years ago

@MxitarHakobyan @twnth Hi guys, following @MxitarHakobyan debug code, I've just released v1.5.2 which contains a null safety condition. Please check it out and let me know if it works. Thanks for supporting the library!

That's fine now issue resolved we can successfully close this issue

Thanks