From 5cd68cf7748d4b46b40512b77dd54410eb0e1c93 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 30 Oct 2018 22:18:10 -0400 Subject: [PATCH] Fix crash when My Profile is first tab loaded Closes #5 --- Tusker/Screens/Profile/ProfileTableViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() } }