Eevee: Fix crash caused by visibility calculation

This commit is contained in:
Clément Foucault 2019-05-30 00:34:44 +02:00
parent 596492e639
commit 9f2e154e02
Notes: blender-bot 2023-02-14 12:01:57 +01:00
Referenced by issue #65159, Reflection Plane cause crash if used with any Particle Simulation
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ bool EEVEE_lightprobes_obj_visibility_cb(bool vis_in, void *user_data)
EEVEE_ObjectEngineData *oed = (EEVEE_ObjectEngineData *)user_data;
/* test disabled if group is NULL */
if (oed->test_data->collection == NULL) {
if (oed == NULL || oed->test_data->collection == NULL) {
return vis_in;
}