Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 48e1688

Browse files
authored
Null check for the notification parent view (#3381)
1 parent 785ef6a commit 48e1688

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NotificationManager.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ public static void show(int notificationId, @NonNull Notification notification)
166166
}
167167

168168
Runnable hideTask = () -> hide(notificationId);
169-
notification.mView.postDelayed(hideTask, notification.mDuration);
169+
170+
if (notification.mView != null) {
171+
notification.mView.postDelayed(hideTask, notification.mDuration);
172+
}
170173

171174
mData.put(notificationId, new NotificationData(notificationView, notification, hideTask));
172175
}

0 commit comments

Comments
 (0)