GNOME Bugzilla – Bug 646220
dconf-editor crashes on empty schema description
Last modified: 2015-02-22 12:23:22 UTC
Created attachment 184683 [details] [review] Fixes this crash. In a case like this (caribou schema): <key type="b" name="default-colors"> <default>true</default> <summary>Use the default theme colors</summary> <description/> </key> the editor crashes currently. The attched patch fixes this.
I can confirm that the attached patch fixes the problem of dconf-editor crashing on startup with schemata such as the one described in comment #0.
Review of attachment 184683 [details] [review]: ::: editor/dconf-schema.vala @@ +55,3 @@ summary = child->children->content; else if (child->name == "description") + description = child->children == null ? "" : child->children->content; Doesn't make sense to me to fix this here without fixing the same issue for summary two lines up.
Matthias: it would have been helpful if you forwarded the Fedora vendor patch upstream on this one... I only know of it existing due to a remark you made on IRC (a month later). In any case, I found it and pushed it upstream now. Thanks for the fix. commit b568b12ccecb114ff6d910f1d22309ad1c83273c Author: Matthias Clasen <mclasen@redhat.com> Date: Sun May 8 18:23:11 2011 +0200 editor: Don't crash on empty schema descriptions Based on a patch from Fabian Deutsch <fabian.deutsch@gmx.de>
[moving dconf>editor tickets to dconf-editor product. See bug 744791]