diff options
author | Bastien Montagne <bastien@blender.org> | 2021-05-27 20:30:23 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-05-27 20:32:35 +0300 |
commit | 758c115103284bf1657d3b3c74529c551d5d55ad (patch) | |
tree | 722d5345da82096dd973a2815307bb7917161983 /source/blender/blenkernel/intern | |
parent | 311ffd967bd15a0fd265d1831d3577982b01f55d (diff) |
Fix own crash in today's rBf68288a8746f.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/lib_override.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c index aeef6c04944..0e2317c72de 100644 --- a/source/blender/blenkernel/intern/lib_override.c +++ b/source/blender/blenkernel/intern/lib_override.c @@ -1329,7 +1329,7 @@ static void lib_override_library_main_resync_on_library_indirect_level( if (id->tag & LIB_TAG_LIB_OVERRIDE_NEED_RESYNC) { CLOG_INFO(&LOG, 4, "ID %s (%p) was already tagged as needing resync", id->name, id->lib); - if (id->lib->temp_index > library_indirect_level) { + if (id->lib != NULL && id->lib->temp_index > library_indirect_level) { CLOG_ERROR( &LOG, "While processing indirect level %d, ID %s from lib %s of indirect level %d detected " @@ -1363,7 +1363,7 @@ static void lib_override_library_main_resync_on_library_indirect_level( id->lib, id_to->name, id_to->lib); - if (id->lib->temp_index > library_indirect_level) { + if (id->lib != NULL && id->lib->temp_index > library_indirect_level) { CLOG_ERROR(&LOG, "While processing indirect level %d, ID %s from lib %s of indirect level %d " "detected " |