From: compudj Date: Sat, 14 Aug 2004 19:10:17 +0000 (+0000) Subject: fix bug in current process X-Git-Tag: v0.12.20~2740 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d2d199a6926d8d0b473b7b40b050c943623e56a1;p=lttv.git fix bug in current process git-svn-id: http://ltt.polymtl.ca/svn@749 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c index 9fc871d8..ef3e3177 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c @@ -416,9 +416,11 @@ static gboolean remove_hash_item(ProcessInfo *process_info, gtk_list_store_remove (process_list->list_store, &iter); - if(hashed_process_data == process_list->current_hash_data[process_info->cpu]) - process_list->current_hash_data[process_info->cpu] = NULL; - + if(process_list->current_hash_data != NULL) { + if(hashed_process_data == + process_list->current_hash_data[process_info->cpu]) + process_list->current_hash_data[process_info->cpu] = NULL; + } return TRUE; /* remove the element from the hash table */ }