Fix crash when My Profile is first tab loaded

Closes #5
This commit is contained in:
Shadowfacts 2018-10-30 22:18:10 -04:00
parent 493cab35f3
commit f3a54558e1
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ class ProfileTableViewController: UITableViewController, PreferencesAdaptive {
}
}
if MastodonCache.account(for: accountID) != nil {
if let accountID = accountID,
MastodonCache.account(for: accountID) != nil {
updateUIForPreferences()
}
}