diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NotificationManager.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NotificationManager.java index ef8a47dd1..e9cd73506 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NotificationManager.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NotificationManager.java @@ -166,7 +166,10 @@ public static void show(int notificationId, @NonNull Notification notification) } Runnable hideTask = () -> hide(notificationId); - notification.mView.postDelayed(hideTask, notification.mDuration); + + if (notification.mView != null) { + notification.mView.postDelayed(hideTask, notification.mDuration); + } mData.put(notificationId, new NotificationData(notificationView, notification, hideTask)); }