Don't crash if there isn't a folder or feed available.

This commit is contained in:
Maurice Parker 2019-12-28 10:23:09 -07:00
parent 4b361300f4
commit 36521a1783
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ class ShareViewController: SLComposeServiceViewController, ShareFolderPickerCont
account = containerAccount
} else if let containerFolder = container as? Folder, let containerAccount = containerFolder.account {
account = containerAccount
} else {
self.extensionContext!.completeRequest(returningItems: [], completionHandler: nil)
return
}
if let urlString = url?.absoluteString, account!.hasWebFeed(withURL: urlString) {