diff --git a/Signal/src/ViewControllers/ContactViewController.swift b/Signal/src/ViewControllers/ContactViewController.swift index 425a58b0e..e55f2f5d2 100644 --- a/Signal/src/ViewControllers/ContactViewController.swift +++ b/Signal/src/ViewControllers/ContactViewController.swift @@ -600,7 +600,7 @@ class ContactViewController: OWSViewController, CNContactViewControllerDelegate } // Note that we use "q" (i.e. query) rather than "address" since we can't assume // this is a well-formed address. - guard let url = NSURL(string: "http://maps.apple.com/?q=\(escapedMapAddress)") else { + guard let url = URL(string: "http://maps.apple.com/?q=\(escapedMapAddress)") else { owsFail("\(ContactViewController.logTag) could not open address.") return }