Fix crash after 475bd6b occuring on each render end, we need another nullcheck here

(cherry picked from commit 3ea67e08fe)
This commit is contained in:
jens verwiebe 2020-04-28 23:49:52 +02:00 committed by Philipp Oeser
parent b3ac6d1348
commit 839fe335d2
Notes: blender-bot 2023-02-14 10:32:59 +01:00
Referenced by issue #76307, Blender 2.83beta crashes right after closing Preferences dialog on Fedora 32
Referenced by issue #76223, 2.83 Crash using compositing nodes
Referenced by issue #76214, Compositor crash in Blender 2.83 latest build
1 changed files with 1 additions and 1 deletions

View File

@ -656,7 +656,7 @@ static void uiblock_layer_pass_buttons(
/* pass */
rpass = (rl ? BLI_findlink(&rl->passes, iuser->pass) : NULL);
if (RE_passes_have_name(rl)) {
if (rl && RE_passes_have_name(rl)) {
display_name = rpass ? rpass->name : "";
rnd_pt = ui_imageuser_data_copy(&rnd_pt_local);
but = uiDefMenuBut(block,