                 let clientPickerController = ClientPickerViewController()
                 clientPickerController.clientPickerDelegate = clientPickerDelegate
                 clientPickerController.profile = browserProfile
-                if let url = self.tab.url?.absoluteString {
-                    clientPickerController.shareItem = ShareItem(url: url, title: self.tab.title, favicon: nil)
+                if let url = self.tab?.url?.absoluteString {
+                    clientPickerController.shareItem = ShareItem(url: url, title: self.tab?.title, favicon: nil)
                 }
 
                 self.clientPicker = UINavigationController(rootViewController: clientPickerController)


    override func viewDidLoad() {
        super.viewDidLoad()
        previewAccessibilityLabel = NSLocalizedString("Preview of \(tab.webView?.accessibilityLabel)", tableName: "3DTouchActions", comment: "Accessibility Label for preview in Tab Tray of current tab")
        // if there is no screenshot, load the URL in a web page
        // otherwise just show the screenshot
        setupWebView(tab.webView)
        guard let screenshot = tab.screenshot else { return }
        setupWithScreenshot(screenshot)
    }


    private static let PreviewActionCopyURL = NSLocalizedString("Copy URL", tableName: "3DTouchActions", comment: "Label for preview action on Tab Tray Tab to copy the URL of the current tab to clipboard")
    private static let PreviewActionCloseTab = NSLocalizedString("Close Tab", tableName: "3DTouchActions", comment: "Label for preview action on Tab Tray Tab to close the current tab")

    weak var tab: Browser?

    private weak var delegate: TabPeekDelegate?
    private var clientPicker: UINavigationController?
