question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notifications related crash in full flavor

See original GitHub issue
Fatal Exception: java.lang.RuntimeException: Unable to instantiate service org.openhab.habdroid.core.FcmMessageListenerService: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
       at android.app.ActivityThread.handleCreateService(ActivityThread.java:3745)
       at android.app.ActivityThread.access$1400(ActivityThread.java:238)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1803)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7073)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
       at android.content.ContextWrapper.getSystemService(ContextWrapper.java:741)
       at org.openhab.habdroid.core.NotificationHelper.<init>(NotificationHelper.kt:41)
       at org.openhab.habdroid.core.FcmMessageListenerService.<init>(FcmMessageListenerService.kt:23)
       at java.lang.Class.newInstance(Class.java)
       at android.app.AppComponentFactory.instantiateService(AppComponentFactory.java:103)
       at androidx.core.app.CoreComponentFactory.instantiateService(CoreComponentFactory.java:75)
       at android.app.ActivityThread.handleCreateService(ActivityThread.java:3740)
       at android.app.ActivityThread.access$1400(ActivityThread.java:238)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1803)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7073)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

Environment data

Client

  • Android version: Multiple
  • Device model: Multiple
  • App version : 2.13.1-beta
  • Build flavor : Full
  • Device language: Multiple

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
scatterthoughtcommented, Jun 12, 2020

I’m not sure if this is the same issue, but I noticed with the new release that notifications are no longer working in the beta app. The notifications are sent by myopenhab and show up in the app, but there’s nothing in the Android notification bar. I installed and tested the public release and notifications still work in that version.

0reactions
CSchlippcommented, Jul 9, 2020

Can confirm as well that it’s working again in 2.13.11.

Sorry for not adding the application log, it was way too late yesterday. Today morning @cwihne was a bit faster than me 😉

Thanks for the quick fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Bad notification posted Crash - Stack Overflow
I'm new to coding. I have made a net speed indicator app for fun. It displays the network speed as a status bar...
Read more >
connecticut department of transportation
The Motor Vehicle Information section of the report is designed to collect basic information about the vehicle(s) involved in the crash. The officer...
Read more >
Use Crash Detection on iPhone or Apple Watch to call for help ...
Crash Detection is designed to detect severe car crashes—such as front-impact, side-impact, and rear-end collisions, and rollovers—involving ...
Read more >
Customize your Firebase Crashlytics crash reports - Google
This guide describes how to customize your crash reports using the Firebase Crashlytics SDK. By default, Crashlytics automatically collects crash reports ...
Read more >
Comparative Analysis of Fatal Crashes in Texas vs. California ...
Figure 18 Fatalities of Intersection Related Crashes . ... registered trucks to total registered vehicles was 59% in Texas and 49% in California....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found