From 36521a1783ee5dcb052468a89844c5f4a2ec6975 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 28 Dec 2019 10:23:09 -0700 Subject: [PATCH] Don't crash if there isn't a folder or feed available. --- iOS/ShareExtension/ShareViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iOS/ShareExtension/ShareViewController.swift b/iOS/ShareExtension/ShareViewController.swift index 684b8cacb..29f921897 100644 --- a/iOS/ShareExtension/ShareViewController.swift +++ b/iOS/ShareExtension/ShareViewController.swift @@ -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) {