tested with a very large blend file 600mb. - from [#27002].
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index a87d993bc15b370597901f325334fe0dc11be8aa..1673cbf8458f55909505077a6de39dfa35ab4304 100644 (file)
@@ -290,6 +290,8 @@ static void *oldnewmap_lookup_and_inc(OldNewMap *onm, void *addr)
 {
        int i;
 
+       if(addr==NULL) return NULL;
+
        if (onm->lasthit<onm->nentries-1) {
                OldNew *entry= &onm->entries[++onm->lasthit];