     }
 
     func setState(withProfile browserProfile: BrowserProfile, clientPickerDelegate: ClientPickerViewControllerDelegate) {
-        guard let displayURL = tab.url?.absoluteString where displayURL.characters.count > 0 else { return }
+        guard let displayURL = tab?.url?.absoluteString where displayURL.characters.count > 0 else { return }
 
         browserProfile.bookmarks.isBookmarked(displayURL).upon {
             self.isBookmarked = $0.successValue ?? false

        if(!self.ignoreURL) {
            if !self.isInReadingList {
                actions.append(UIPreviewAction(title: TabPeekViewController.PreviewActionAddToReadingList, style: .Default) { previewAction, viewController in
                    self.delegate?.tabPeekDidAddToReadingList(self.tab)
                })
            }
            if !self.isBookmarked {
                actions.append(UIPreviewAction(title: TabPeekViewController.PreviewActionAddToBookmarks, style: .Default) { previewAction, viewController in
                    self.delegate?.tabPeekDidAddBookmark(self.tab)
                    })
            }
            if self.hasRemoteClients {

    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?
