fix(push-notification-receiver): check if status is null before doing stuff
This commit is contained in:
parent
849172ad7f
commit
d5cd016776
|
@ -133,7 +133,11 @@ public class PushNotificationReceiver extends BroadcastReceiver{
|
|||
|
||||
if(intent.hasExtra("notification")){
|
||||
org.joinmastodon.android.model.Notification notification=Parcels.unwrap(intent.getParcelableExtra("notification"));
|
||||
String statusID=notification.status.id;
|
||||
|
||||
String statusID = null;
|
||||
if(notification != null && notification.status != null)
|
||||
statusID=notification.status.id;
|
||||
|
||||
if (statusID != null) {
|
||||
AccountSessionManager accountSessionManager = AccountSessionManager.getInstance();
|
||||
Preferences preferences = accountSessionManager.getAccount(accountID).preferences;
|
||||
|
|
Loading…
Reference in New Issue