From 019f7d6d6aca70faf2735cf73d5810c65a7e9bc0 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 13 Jan 2023 15:26:26 -0500 Subject: [PATCH] Fix crash if preferences change while there are cells that don't have statuses --- Tusker/Views/Status/TimelineStatusCollectionViewCell.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tusker/Views/Status/TimelineStatusCollectionViewCell.swift b/Tusker/Views/Status/TimelineStatusCollectionViewCell.swift index 1ac1e553..c0477fe1 100644 --- a/Tusker/Views/Status/TimelineStatusCollectionViewCell.swift +++ b/Tusker/Views/Status/TimelineStatusCollectionViewCell.swift @@ -668,6 +668,7 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti @objc private func preferencesChanged() { guard let mastodonController, + let statusID, let status = mastodonController.persistentContainer.status(for: statusID) else { return }