diff --git a/Tusker/Views/Profile Header/ProfileHeaderView.swift b/Tusker/Views/Profile Header/ProfileHeaderView.swift index 3fc9bc6e..484c3a2d 100644 --- a/Tusker/Views/Profile Header/ProfileHeaderView.swift +++ b/Tusker/Views/Profile Header/ProfileHeaderView.swift @@ -181,7 +181,8 @@ class ProfileHeaderView: UIView { } @objc private func updateUIForPreferences() { - guard let account = mastodonController.persistentContainer.account(for: accountID) else { + guard let mastodonController = mastodonController, + let account = mastodonController.persistentContainer.account(for: accountID) else { fatalError("Missing cached account \(accountID!)") }