diff --git a/PennMobile/Auth/PennLoginController.swift b/PennMobile/Auth/PennLoginController.swift index 08a4aff89..9cd4dd610 100755 --- a/PennMobile/Auth/PennLoginController.swift +++ b/PennMobile/Auth/PennLoginController.swift @@ -75,8 +75,10 @@ class PennLoginController: UIViewController, WKUIDelegate, WKNavigationDelegate override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() - activityIndicatorBackground.center = view.center - view.bringSubviewToFront(activityIndicatorBackground) + if let activityIndicatorBackground { + activityIndicatorBackground.center = view.center + view.bringSubviewToFront(activityIndicatorBackground) + } } func webView(