GNOME Bugzilla – Bug 699866
crash in gconf_editor_window_have_icons_notify
Last modified: 2018-07-01 08:39:19 UTC
When trying to unset /desktop/gnome/interface/menus_have_icons, I get this:
+ Trace 231907
Something like this should fix the issue (not tested): --- a/src/gconf-editor-window.c +++ b/src/gconf-editor-window.c @@ -1198,7 +1198,7 @@ gconf_editor_window_have_tearoffs_notify (GConfClient *client, { gboolean have_tearoffs; - if (entry->value->type != GCONF_VALUE_BOOL) + if (! entry->value || entry->value->type != GCONF_VALUE_BOOL) return; have_tearoffs = gconf_value_get_bool (entry->value); @@ -1251,7 +1251,7 @@ gconf_editor_window_have_icons_notify (GConfClient *client, { gboolean have_icons; - if (entry->value->type != GCONF_VALUE_BOOL) + if (! entry->value || entry->value->type != GCONF_VALUE_BOOL) return; have_icons = gconf_value_get_bool (entry->value);
Patches welcome as attachments, if this is still the case in git master - see https://git.gnome.org/browse/gconf-editor/
Created attachment 243840 [details] [review] Fix crashes in gconf_editor_window_have_*_notify Fix crash in gconf_editor_window_have_*_notify Do nothing when entry->value is NULL. https://bugzilla.gnome.org/show_bug.cgi?id=699866
gconf-editor is not under active development anymore and has not seen code changes for six years. Its codebase has been archived: https://gitlab.gnome.org/Archive/gconf-editor/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.