PixImagePicker: Bug: App crash on taking photo

Hi, I want to report a bug, which occurs since the version 1.5.4 of your library. I get following error after taking a photo:

2020-10-03 02:12:57.321 16739-16739/com.mrgames13.jimdo.colorconverter E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.mrgames13.jimdo.colorconverter, PID: 16739
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
        at com.fxn.pix.Pix$8$1.onFileReady(Pix.java:456)
        at com.otaliastudios.cameraview.CameraUtils$1$1.run(CameraUtils.java:124)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Tested with Pixel 3a phone with Android 11

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 24 (19 by maintainers)

Most upvoted comments

Add android:requestLegacyExternalStorage=“true” in application manifest.

@marcauberer, the latest changes have been released in PixImagePicker version 1.5.6