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

NullPointerException #10

Open
Swordce opened this issue Jun 21, 2018 · 0 comments
Open

NullPointerException #10

Swordce opened this issue Jun 21, 2018 · 0 comments

Comments

@Swordce
Copy link

Swordce commented Jun 21, 2018

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:241)
at android.app.AlertDialog$Builder.(AlertDialog.java:471)
at com.mylhyl.acp.AcpManager.showDeniedDialog(AcpManager.java:196)
at com.mylhyl.acp.AcpManager.onRequestPermissionsResult(AcpManager.java:185)
at com.mylhyl.acp.AcpActivity.onRequestPermissionsResult(AcpActivity.java:28)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7435)
at android.app.Activity.dispatchActivityResult(Activity.java:7287)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4396)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3660)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3736)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2935)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1648)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:185)
at android.app.ActivityThread.main(ActivityThread.java:6615)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:806)

java.lang.RuntimeException: Unable to resume activity {com.pufei.gxdt/com.mylhyl.acp.AcpActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=56, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.pufei.gxdt/com.mylhyl.acp.AcpActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3686)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3736)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2935)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1648)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:185)
at android.app.ActivityThread.main(ActivityThread.java:6615)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:806)

Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=56, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.pufei.gxdt/com.mylhyl.acp.AcpActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:4400)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3660)
... 10 more

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