fix bug in current process
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / processlist.c
index 9fc871d862d57d24308c0f54760811be9b24e715..ef3e3177c21f8ece73863d55c8889b0eee4e47a5 100644 (file)
@@ -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 */
 }
 
This page took 0.022519 seconds and 4 git commands to generate.