From 8f2db94627d50df0d8c40b3b8f17db3e429bbb8d Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 25 Nov 2021 00:03:41 +0100 Subject: Fix T93357: crash when opening search menu This is the same fix as in rBde35a90f9f56d3ff3ac80c13bf1ae296853ba877 but for the blender-v3.0-release branch. --- source/blender/editors/asset/intern/asset_ops.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc index 1f5d3f5c101..9d03f6030b5 100644 --- a/source/blender/editors/asset/intern/asset_ops.cc +++ b/source/blender/editors/asset/intern/asset_ops.cc @@ -693,6 +693,9 @@ static bool asset_bundle_install_poll(bContext *C) { /* This operator only works when the asset browser is set to Current File. */ const SpaceFile *sfile = CTX_wm_space_file(C); + if (sfile == nullptr) { + return false; + } if (!ED_fileselect_is_local_asset_library(sfile)) { return false; } -- cgit v1.2.3