fix crash from own recent changes [#26271] Crash when accessing bpy.data.node_groups

This commit is contained in:
2011-03-03 13:55:15 +00:00
parent 36db7f8eb7
commit e197cc95e6

View File

@@ -860,7 +860,7 @@ static PyObject *pyrna_prop_repr(BPy_PropertyRNA *self)
PYRNA_PROP_CHECK_OBJ(self)
if((id= self->ptr.id.data))
if((id= self->ptr.id.data) == NULL)
return pyrna_prop_str(self); /* fallback */
path= RNA_path_from_ID_to_property(&self->ptr, self->prop);