-
Notifications
You must be signed in to change notification settings - Fork 32
Fix NullPointerException when receiving push when killed #914
Conversation
Fix #909 |
Maybe this also fixes the crash when sharing stuff from context menu. |
This is a different issue, but I can give a look |
It fixed the push notification error, but context menu crash still not fixed ://
|
I don't know what's going on. I do not get notifications again |
if you updated using f-droid or downloaded the f-droid variant, this removed the FCM (firebase cloud messaging) compatibility, so that might be why. you could use the github variant (megalodon.apk) or the one from google play instead |
Okay, heads up: I do get notifications, but not everytime. I was able to catch a crash via LogFox:
|
Another one: crash when notifications incoming:
|
When receiving a push notification while the app is killed,
filterStatusContainingObjects
is called and it useslocalPreferences
before it is initialized and causes a NullPointerException. This PR changesAccountSession.class
sogetLocalPreferences
is always called to be surelocalPreferences
is initialized.logcat: