Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.AlertDialog.isShowing()' on a null object reference #67

Closed
SerhiiSolobaievUptech opened this issue Apr 19, 2018 · 7 comments

Comments

@SerhiiSolobaievUptech
Copy link
Contributor

Process: com.sprent.customer.dev, PID: 24189 java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.AlertDialog.isShowing()' on a null object reference at net.alhazmy13.mediapicker.Image.ImageActivity.onSaveInstanceState(ImageActivity.java:182) at android.app.Activity.performSaveInstanceState(Activity.java:1302) at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1289) at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4088) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3490) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3550) at android.app.ActivityThread.-wrap20(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@SerhiiSolobaievUptech
Copy link
Contributor Author

@alhazmy13 Hello, any updates on this issue?

@mabou7agar
Copy link

Any Reply

@SerhiiSolobaievUptech
Copy link
Contributor Author

@alhazmy13 hey, this is #1 crash in my app now. Can you please try to fix it?)

@Saecun
Copy link

Saecun commented Sep 5, 2018

@SerhiiSolobaievUptech / @modyking55 - the code on master has changed recently, so I cannot provide a pull request, however, I have a repo with an update that fixes it for me

https://github.com/Saecun/MediaPicker/releases/tag/2.4.1a-beta

implementation 'com.github.saecun:MediaPicker:2.4.1a-beta'

@SerhiiSolobaievUptech
Copy link
Contributor Author

@Saecun thanks!
@alhazmy13 plz make a change to get this fix. It's really important to make your library better than it is :)

@SerhiiSolobaievUptech
Copy link
Contributor Author

Created PR: #78
Very huge PR 😂

alhazmy13 added a commit that referenced this issue Sep 16, 2018
@alhazmy13
Copy link
Owner

Fixed with Version 2.4.4
Thanks @SerhiiSolobaievUptech

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants