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 4bf49211fd
commit 5cd68cf774
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
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()
}
}