diff --git a/shell/browser/api/electron_api_browser_window_views.cc b/shell/browser/api/electron_api_browser_window_views.cc index fb96705ee32a..9fdbf039f3e0 100644 --- a/shell/browser/api/electron_api_browser_window_views.cc +++ b/shell/browser/api/electron_api_browser_window_views.cc @@ -17,7 +17,7 @@ void BrowserWindow::UpdateDraggableRegions( if (window_->has_frame()) return; - if (&draggable_regions_ != ®ions) { + if (&draggable_regions_ != ®ions && web_contents()) { auto* view = static_cast(web_contents())->GetView(); if (view) {