Fix #33297: crash loading modal keymap after recent keymap bugfix.

This commit is contained in:
Brecht Van Lommel 2012-11-25 06:55:33 +00:00
parent 6c2e338f10
commit 33767bde9b

@ -5954,7 +5954,11 @@ int RNA_struct_equals(PointerRNA *a, PointerRNA *b)
PropertyRNA *iterprop;
int equals = 1;
if (a->type != b->type)
if (a == NULL && b == NULL)
return 1;
else if (a == NULL || b == NULL)
return 0;
else if (a->type != b->type)
return 0;
iterprop = RNA_struct_iterator_property(a->type);