diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-03-02 17:19:48 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-03-02 17:21:09 +0300 |
commit | b3886c1f2adfb2d63b471d137bd7b42b68fbfb1d (patch) | |
tree | 637b9791a9600640a7bc9f656adc019e8e335bbf /source/blender | |
parent | ca2044f72b1023c0df1389af813c36217a67ceca (diff) |
Fix crash on NULL dereference
Caused by e1f3996d740c, `seq_update_meta_disp_range()` did not check if
sequencer data exists.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenloader/intern/versioning_290.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index 1cf6a44ffd9..fa9f00d67ec 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -336,6 +336,10 @@ static void seq_convert_transform_crop_lb_2(const Scene *scene, static void seq_update_meta_disp_range(Editing *ed) { + if (ed == NULL) { + return; + } + LISTBASE_FOREACH_BACKWARD (MetaStack *, ms, &ed->metastack) { /* Update ms->disp_range from meta. */ if (ms->disp_range[0] == ms->disp_range[1]) { |