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

【BUG】空指针 #241

Open
qq380791741 opened this issue Apr 15, 2021 · 1 comment
Open

【BUG】空指针 #241

qq380791741 opened this issue Apr 15, 2021 · 1 comment

Comments

@qq380791741
Copy link

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx.appcompat.app.AppCompatActivity.isDestroyed()' on a null object reference
at com.kongzue.dialog.util.BaseDialog.showNext(BaseDialog.java:165)
at com.kongzue.dialog.util.BaseDialog$1.onDismiss(BaseDialog.java:142)
at com.kongzue.dialog.util.DialogHelper.onDismiss(DialogHelper.java:330)
at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1414)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:238)
at android.app.ActivityThread.main(ActivityThread.java:7829)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:986)
Back traces ends.

在调用isDestroyed方法的时候是否应该判断下 activity是否为null呢

@qq380791741
Copy link
Author

用的com.kongzue.dialog_v3x:dialog:3.2.4

@qq380791741 qq380791741 changed the title 空指针 【BUG】空指针 Apr 15, 2021
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