diff --git a/shell/common/platform_util_linux.cc b/shell/common/platform_util_linux.cc index a35aa15087..400a69e4a1 100644 --- a/shell/common/platform_util_linux.cc +++ b/shell/common/platform_util_linux.cc @@ -406,6 +406,8 @@ bool PlatformTrashItem(const base::FilePath& full_path, std::string* error) { void Beep() { auto* display = gdk_display_get_default(); + if (!display) + return; gdk_display_beep(display); }