From ff54f7eb67872dad8648738efb93dd00abff9301 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 7 Jan 2015 15:53:13 -0200 Subject: [PATCH] search-view: don't try to access NULL data This should be better debugged, as it may be a thread syncronization problem. --- src/gcal-search-view.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c index 235f4197..0e3b11d3 100644 --- a/src/gcal-search-view.c +++ b/src/gcal-search-view.c @@ -642,8 +642,11 @@ gcal_search_view_component_removed (ECalDataModelSubscriber *subscriber, row_data = g_hash_table_lookup (priv->events, uuid); - g_hash_table_remove (priv->row_to_event, row_data->row); - g_hash_table_remove (priv->events, uuid); + if (row_data) + { + g_hash_table_remove (priv->row_to_event, row_data->row); + g_hash_table_remove (priv->events, uuid); + } g_free (uuid); /* show 'no results' */