Contact lookup applet crashes if added to panel before evo is launched

Bug #12860 reported by Sylvain Pasche on 2005-02-13
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
contact-lookup-applet (Ubuntu)
Medium
Sebastien Bacher

Bug Description

Before evolution is launched, the gconf key /apps/evolution/addressbook/sources
does not exist.
Here's a patch which prevents segfaulting if this key is null:

--- src/contact-lookup-applet.c~ 2005-02-12 22:10:28.997831304 +0100
+++ src/contact-lookup-applet.c 2005-02-12 22:08:54.156249416 +0100
@@ -175,6 +175,7 @@
   GSList *list, *l;
   ESourceGroup *sources = NULL;
   g_return_if_fail (user_data != NULL);
+ g_return_if_fail (entry->value != NULL);
   g_return_if_fail (entry->value->type == GCONF_VALUE_LIST);
   g_return_if_fail (gconf_value_get_list_type (entry->value) ==
GCONF_VALUE_STRING);

The other way to fix it might be to put the key in the evolution gconf schema.

Sebastien Bacher (seb128) wrote :

thanks, that's fixed with this upload:

 contact-lookup-applet (0.10-1ubuntu4) hoary; urgency=low
 .
   * don't crash if contact-lookup-applet is started before evolution,
     patch from Sylvain Pasche <email address hidden> (Hoary: #6501).

I've also pointer the bug/patch to the contact-lookup-applet devel

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.