fix crash from own recent changes [#26271] Crash when accessing bpy.data.node_groups
authorCampbell Barton <ideasman42@gmail.com>
Thu, 3 Mar 2011 13:55:15 +0000 (13:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 3 Mar 2011 13:55:15 +0000 (13:55 +0000)
source/blender/python/intern/bpy_rna.c

index 0009c5f7f47efbcb3a27468ada78005caa01a1f6..25d246c066ddae69d0e65309c9e04bfa9922c35f 100644 (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);