Null deref in _clearImmediateActionState when closing a view with a DataDetectors...
[WebKit-https.git] / Source / WebKit2 / UIProcess / mac / WKImmediateActionController.mm
index c1b879f38b6607fc3c1e4e968581706353004a6b..2c7c9288c2a9af5395bedaf47fbc091d0206e921 100644 (file)
@@ -115,7 +115,8 @@ using namespace WebKit;
 
 - (void)_clearImmediateActionState
 {
-    _page->clearTextIndicator();
+    if (_page)
+        _page->clearTextIndicator();
 
     if (_currentActionContext && _hasActivatedActionContext) {
         _hasActivatedActionContext = NO;