Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Null check on app config added

Michael Rademakerf135ce505570
diff --git a/console/iOS/ORLib/ORLib/UI/ORViewController.swift b/console/iOS/ORLib/ORLib/UI/ORViewController.swift
index 5663db8d3..f81bc5790 100644
--- a/console/iOS/ORLib/ORLib/UI/ORViewController.swift
+++ b/console/iOS/ORLib/ORLib/UI/ORViewController.swift
@@ -218,7 +218,9 @@ open class ORViewcontroller : UIViewController {
self.present(alertView, animated: true, completion: nil)
- self.myWebView?.load(URLRequest(url: URL(string: self.appConfig!.url.stringByURLEncoding()!)!))
+ if let applicationConfig = appConfig {
+ self.myWebView?.load(URLRequest(url: URL(string: applicationConfig.url.stringByURLEncoding()!)!))
+ }
}
}