diff options
author | Jacques Lucke <jacques@blender.org> | 2021-11-25 02:03:41 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-11-25 02:03:41 +0300 |
commit | 8f2db94627d50df0d8c40b3b8f17db3e429bbb8d (patch) | |
tree | 3d2bc48f430bbd662287faf1d8921d81c9e31d55 /source/blender/editors/asset | |
parent | a9642f8d613078b285db4b04efb8bf8e5a234fbb (diff) |
Fix T93357: crash when opening search menu
This is the same fix as in rBde35a90f9f56d3ff3ac80c13bf1ae296853ba877
but for the blender-v3.0-release branch.
Diffstat (limited to 'source/blender/editors/asset')
-rw-r--r-- | source/blender/editors/asset/intern/asset_ops.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |