From d0a1aec1c017cf0227ef9fc56e197cddaeb5daba Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 27 May 2023 15:21:34 -0700 Subject: [PATCH] Fix crash when action notification cell doesn't have any statuses Closes #390 --- .../ActionNotificationGroupCollectionViewCell.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tusker/Screens/Notifications/ActionNotificationGroupCollectionViewCell.swift b/Tusker/Screens/Notifications/ActionNotificationGroupCollectionViewCell.swift index 2a11af32..82083977 100644 --- a/Tusker/Screens/Notifications/ActionNotificationGroupCollectionViewCell.swift +++ b/Tusker/Screens/Notifications/ActionNotificationGroupCollectionViewCell.swift @@ -240,7 +240,9 @@ class ActionNotificationGroupCollectionViewCell: UICollectionViewListCell { override var accessibilityLabel: String? { get { - let first = group.notifications.first! + guard let first = group.notifications.first else { + return nil + } var str = "" switch group.kind { case .favourite: