[gnome-calendar] search-view: don't try to access NULL data
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] search-view: don't try to access NULL data
- Date: Fri, 9 Jan 2015 14:32:49 +0000 (UTC)
commit ff54f7eb67872dad8648738efb93dd00abff9301
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jan 7 15:53:13 2015 -0200
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 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 235f419..0e3b11d 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' */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]