forked from shadowfacts/Tusker
Fix crash when ProfileHeaderView leaks
This commit is contained in:
parent
eca7f31e82
commit
e65ed3e773
|
@ -181,7 +181,8 @@ class ProfileHeaderView: UIView {
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc private func updateUIForPreferences() {
|
@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!)")
|
fatalError("Missing cached account \(accountID!)")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue