summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-05-08 18:23:11 +0200
committerRyan Lortie <desrt@desrt.ca>2011-05-09 00:12:34 +0200
commit73a263d710d3b629c1af4fb1e112671e494ee79d (patch)
tree1bdf54b8acd57ba84895caceed36c739ffec5c34
parentffa3b0ece1b95278061800b4dba3de2d8f21c0e2 (diff)
downloaddconf-73a263d710d3b629c1af4fb1e112671e494ee79d.tar.gz
editor: Don't crash on empty schema descriptions
Based on a patch from Fabian Deutsch <fabian.deutsch@gmx.de>
-rw-r--r--editor/dconf-schema.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/dconf-schema.vala b/editor/dconf-schema.vala
index c2654b5..2d3ff7d 100644
--- a/editor/dconf-schema.vala
+++ b/editor/dconf-schema.vala
@@ -52,9 +52,9 @@ public class SchemaKey
}
}
else if (child->name == "summary")
- summary = child->children->content;
+ summary = child->children == null ? "" : child->children->content;
else if (child->name == "description")
- description = child->children->content;
+ description = child->children == null ? "" : child->children->content;
else if (child->name == "range")
range = new SchemaValueRange.from_xml(type, child);
else if (child->name == "choices")