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

Null activity on dialog #977

Closed
daniele-athome opened this issue Mar 15, 2017 · 0 comments
Closed

Null activity on dialog #977

daniele-athome opened this issue Mar 15, 2017 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@daniele-athome
Copy link
Member

Use the context variable defined in the outer scope.

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
       at android.support.v4.content.ContextCompat.getColor(ContextCompat.java:434)
       at com.afollestad.materialdialogs.util.DialogUtils.getColor(DialogUtils.java:125)
       at com.afollestad.materialdialogs.MaterialDialog$Builder.<init>(MaterialDialog.java:519)
       at org.kontalk.ui.ComposeMessageFragment$9.onClick(ComposeMessageFragment.java:914)
       at org.kontalk.ui.AbstractComposeFragment$19.onActionClicked(AbstractComposeFragment.java:1686)
       at com.nispok.snackbar.Snackbar$4.onClick(Snackbar.java:677)
       at android.view.View.performClick(View.java:4781)
       at android.view.View$PerformClick.run(View.java:19874)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:135)
       at android.app.ActivityThread.main(ActivityThread.java:5254)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
@daniele-athome daniele-athome added the bug Something isn't working label Mar 15, 2017
@daniele-athome daniele-athome added this to the 4.0.1 milestone Mar 15, 2017
@daniele-athome daniele-athome self-assigned this Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant