diff --git a/Tusker/Screens/Profile/ProfileTableViewController.swift b/Tusker/Screens/Profile/ProfileTableViewController.swift index e8cd477f84..b83726393f 100644 --- a/Tusker/Screens/Profile/ProfileTableViewController.swift +++ b/Tusker/Screens/Profile/ProfileTableViewController.swift @@ -103,7 +103,8 @@ class ProfileTableViewController: UITableViewController, PreferencesAdaptive { } } - if MastodonCache.account(for: accountID) != nil { + if let accountID = accountID, + MastodonCache.account(for: accountID) != nil { updateUIForPreferences() } }