GNOME Bugzilla – Bug 492903
NULL pointer comparison in gnome-wp-item.c
Last modified: 2007-11-03 11:00:38 UTC
One of our users saw some of his GConf settings smashed after an emergency shutdown. After that, gnome-appearance-properties started to crash on startup with the following trace:
+ Trace 174757
According to him, item->shade_type was NULL and this is what caused the crash. Note that I have not managed to reproduce the bug, even by unregistering the schemas and removing the shading_type key, but I guess a !NULL check cannot hurt anyway. Reference: http://bugs.debian.org/435005
A NULL check there would only mask the real problem (if there is one). I also suspect the report against 2.20 is a different issue than the one against 2.18, but we should be more robust now in any case. 2007-11-03 Jens Granseuer <jensgr@gmx.net> * appearance-desktop.c: (wp_color_changed), (wp_props_wp_set): * gnome-wp-item.c: (gnome_wp_item_new), (gnome_wp_item_free), (gnome_wp_item_dup): * gnome-wp-item.h: * gnome-wp-xml.c: (gnome_wp_xml_load_xml), (gnome_wp_xml_save_list): be more careful when reading background information from GConf and make sure we don't choke on NULL values later on (bug #492903)