search-view: don't try to access NULL data

This should be better debugged, as it may be a thread syncronization problem.
This commit is contained in:
Georges Basile Stavracas Neto
2015-01-09 09:16:41 -05:00
committed by Erick Pérez Castellanos
parent ddb93d8d72
commit ff54f7eb67
+5 -2
View File
@@ -642,8 +642,11 @@ gcal_search_view_component_removed (ECalDataModelSubscriber *subscriber,
row_data = g_hash_table_lookup (priv->events, uuid); row_data = g_hash_table_lookup (priv->events, uuid);
g_hash_table_remove (priv->row_to_event, row_data->row); if (row_data)
g_hash_table_remove (priv->events, uuid); {
g_hash_table_remove (priv->row_to_event, row_data->row);
g_hash_table_remove (priv->events, uuid);
}
g_free (uuid); g_free (uuid);
/* show 'no results' */ /* show 'no results' */