From 55270f6fbc7f61f9abcf1e19e00e026773f1971d Mon Sep 17 00:00:00 2001 From: Marino Faggiana Date: Thu, 30 May 2024 13:59:15 +0200 Subject: [PATCH] coding Signed-off-by: Marino Faggiana --- iOSClient/Settings/Settings/NCSettingsModel.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iOSClient/Settings/Settings/NCSettingsModel.swift b/iOSClient/Settings/Settings/NCSettingsModel.swift index 4fa1d107ce..1d1c013891 100644 --- a/iOSClient/Settings/Settings/NCSettingsModel.swift +++ b/iOSClient/Settings/Settings/NCSettingsModel.swift @@ -95,7 +95,9 @@ class NCSettingsModel: ObservableObject, ViewOnAppearHandling { func getConfigFiles() { let configLink = appDelegate.urlBase + NCBrandOptions.shared.mobileconfig let configServer = NCConfigServer() - configServer.startService(url: URL(string: configLink)!) + if let url = URL(string: configLink) { + configServer.startService(url: url) + } } }