Commit e6cc10d1 authored by Daniel Sabo's avatar Daniel Sabo

Don't try to read props of NULL node->operation

parent e8e8eea3
......@@ -1273,7 +1273,7 @@ gegl_node_set_valist (GeglNode *self,
{
object = G_OBJECT (self);
}
else
else if (self->operation)
{
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (self->operation),
property_name);
......@@ -1362,7 +1362,8 @@ gegl_node_set_property (GeglNode *self,
return;
}
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (self->operation), property_name);
if (self->operation)
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (self->operation), property_name);
if (pspec)
{
if (G_IS_PARAM_SPEC_ENUM (pspec) && G_VALUE_HOLDS (value, G_TYPE_STRING))
......@@ -1423,7 +1424,8 @@ gegl_node_get_property (GeglNode *self,
return;
}
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (self->operation), property_name);
if (self->operation)
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (self->operation), property_name);
if (pspec)
{
if (!G_IS_VALUE (value))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment