             return self.window?.contentViewController as! WebViewController
         }
     }
-    var webView: MyWebView {
+    var webView: MyWebView? {
         get {
             return self.webViewController.webView
         }

        case k.docPlaylists:
            return k.docPlaylistsName
        default:
            if let length = self.webView.title?.count, length > 0 {
                return self.webView.title!
            }
            return displayName
        }

                docIconButton?.image = NSApp.applicationIconImage
            }
            docIconButton?.isHidden = !mouseOver//false
            if let url = self.webView?.url, url.isFileURL {
                self.synchronizeWindowTitleWithDocumentName()
            }
        }
