diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-05-08 18:23:11 +0200 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-05-09 00:12:34 +0200 |
commit | 73a263d710d3b629c1af4fb1e112671e494ee79d (patch) | |
tree | 1bdf54b8acd57ba84895caceed36c739ffec5c34 | |
parent | ffa3b0ece1b95278061800b4dba3de2d8f21c0e2 (diff) | |
download | dconf-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.vala | 4 |
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") |