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

java.lang.NullPointerException in com.kuxhausen.huemore.alarm.AlarmLogic.toggleAlarm #101

Closed
ekux44 opened this issue Nov 7, 2015 · 1 comment

Comments

@ekux44
Copy link
Owner

ekux44 commented Nov 7, 2015

LampShade version: 79, 80, 82 (3.2.1)
Android version: 4.4, 5.0, 5.1
Devices: Galaxy S5 (klte), Xperia Z1 (C6903), Xperia Z1 Compact (D5503), Nexus 6 (shamu), Xperia Z Ultra (C6806), OnePlus One (A0001), Nexus 7 (flo), jfltexx, Nexus 5 (hammerhead), HTC One (M8) (htc_m8), LG G3 (g3)

java.lang.RuntimeException: Unable to start receiver com.kuxhausen.huemore.widget.AlarmWidgetProvider: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.kuxhausen.huemore.alarm.AlarmData.isEnabled()' on a null object reference
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2609)
    at android.app.ActivityThread.access$1700(ActivityThread.java:149)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1361)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5297)
    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:908)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.kuxhausen.huemore.alarm.AlarmData.isEnabled()' on a null object reference
    at com.kuxhausen.huemore.alarm.AlarmLogic.toggleAlarm(AlarmLogic.java:127)
    at com.kuxhausen.huemore.widget.AlarmWidgetProvider.onReceive(AlarmWidgetProvider.java:96)
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:2597)
    ... 9 more
@ekux44
Copy link
Owner Author

ekux44 commented Nov 8, 2015

An intent extra was getting dropped due to a type error. The intent extra was being set as a long but read as an int. I'm embarrassed to say this bug was introduced last February.

@ekux44 ekux44 closed this as completed in 54cd5ac Nov 8, 2015
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