From 74fc1010249582f55afde9d112935246cb308274 Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Thu, 9 Oct 2025 18:01:00 +0200 Subject: [PATCH] Fix #147577: Runtime Error warning on loading default workspace Caused by null de-reference when accessing `sequencer_scene`. Return false if sequencer scene is null to indicate, that the path to strips or modifiers can not be created. Pull Request: https://projects.blender.org/blender/blender/pulls/147594 --- source/blender/editors/space_buttons/buttons_context.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/editors/space_buttons/buttons_context.cc b/source/blender/editors/space_buttons/buttons_context.cc index 3c9eb8e9943..3e651f1dc4e 100644 --- a/source/blender/editors/space_buttons/buttons_context.cc +++ b/source/blender/editors/space_buttons/buttons_context.cc @@ -615,6 +615,9 @@ static bool buttons_context_path( /* No pinned root, use scene as initial root. */ else if (mainb != BCONTEXT_TOOL) { if (ELEM(mainb, BCONTEXT_STRIP, BCONTEXT_STRIP_MODIFIER)) { + if (!sequencer_scene) { + return false; + } path->ptr[0] = RNA_id_pointer_create(&sequencer_scene->id); } else {