From a751fdb0738f93f8738d64b57f448d0bd2a814ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dietrich?= Date: Thu, 18 Jun 2026 14:09:09 +0200 Subject: [PATCH] Fix #160299: crash when unlinking a sound file in the VSE Regression from b2535d04f83b3cf02d12d3dc4d162d514b56a74a which missed the possibility that the sound could be null, so simply add a null pointer check to prevent the crash. Pull Request: https://projects.blender.org/blender/blender/pulls/160305 --- source/blender/sequencer/intern/media_presence.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/sequencer/intern/media_presence.cc b/source/blender/sequencer/intern/media_presence.cc index 8096ae36262..323250ecf36 100644 --- a/source/blender/sequencer/intern/media_presence.cc +++ b/source/blender/sequencer/intern/media_presence.cc @@ -110,7 +110,7 @@ bool media_presence_is_missing(Scene *scene, const Strip *strip) * block. Since it can be used by multiple strips. */ if (strip->type == STRIP_TYPE_SOUND) { const bSound *sound = strip->sound; - if (sound->packedfile != nullptr) { + if (sound && sound->packedfile != nullptr) { /* The sound file has been packed, don't look up the path. */ return false; }