Fix crash if profile header view outlives VC
This commit is contained in:
parent
090746f292
commit
29aed65b99
|
@ -93,6 +93,7 @@ class ProfileHeaderView: UIView {
|
|||
func updateUI(for accountID: String) {
|
||||
self.accountID = accountID
|
||||
|
||||
guard let mastodonController = mastodonController else { return }
|
||||
guard let account = mastodonController.persistentContainer.account(for: accountID) else {
|
||||
fatalError("Missing cached account \(accountID)")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue