VSE: Add missing NULL check in poll

Commit 90e9406866 forgot to add a NULL check for `ed`
This commit is contained in:
Sebastian Parborg 2023-01-31 14:43:17 +01:00
parent 5021f10e65
commit 59b7aec9a2
1 changed files with 1 additions and 1 deletions

View File

@ -3594,7 +3594,7 @@ static int sequencer_scene_frame_range_update_exec(bContext *C, wmOperator *UNUS
static bool sequencer_scene_frame_range_update_poll(bContext *C)
{
Editing *ed = SEQ_editing_get(CTX_data_scene(C));
return (ed->act_seq != NULL && (ed->act_seq->type & SEQ_TYPE_SCENE) != 0);
return (ed != NULL && ed->act_seq != NULL && (ed->act_seq->type & SEQ_TYPE_SCENE) != 0);
}
void SEQUENCER_OT_scene_frame_range_update(wmOperatorType *ot)