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

SwitchLogInfoDialog NullPointerException: 'getResources()' on a null object reference #315

Closed
galadril opened this issue May 3, 2016 · 0 comments

Comments

@galadril
Copy link
Contributor

galadril commented May 3, 2016

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
    at com.afollestad.materialdialogs.util.DialogUtils.getColor(DialogUtils.java:113)
    at com.afollestad.materialdialogs.MaterialDialog$Builder.<init>(MaterialDialog.java:483)
    at nl.hnogames.domoticz.UI.SwitchLogInfoDialog.<init>(SwitchLogInfoDialog.java:50)
    at nl.hnogames.domoticz.Fragments.Switches.showLogDialog(Switches.java:233)
    at nl.hnogames.domoticz.Fragments.Switches.access$500(Switches.java:68)
    at nl.hnogames.domoticz.Fragments.Switches$5.onReceiveSwitches(Switches.java:304)
    at nl.hnogames.domoticz.Domoticz.SwitchLogParser.parseResult(SwitchLogParser.java:58)
    at nl.hnogames.domoticz.Utils.RequestUtil$7.onResponse(RequestUtil.java:223)
    at nl.hnogames.domoticz.Utils.RequestUtil$7.onResponse(RequestUtil.java:213)
    at com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:65)
    at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
    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:5294)
    at java.lang.reflect.Method.invoke(Native Method)
    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)
@galadril galadril changed the title java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference SwitchLogInfoDialog NullPointerException: 'getResources()' on a null object reference May 19, 2016
galadril added a commit that referenced this issue Jun 20, 2016
NullPointerException: 'getResources()' on a null object reference #315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant