summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/panels/errors.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/panels/errors.c b/src/gui/panels/errors.c
index b405d04..b258ecf 100644
--- a/src/gui/panels/errors.c
+++ b/src/gui/panels/errors.c
@@ -1167,13 +1167,17 @@ static void g_error_panel_conclude(GErrorPanel *panel, unsigned int uid, error_u
treeview = GTK_TREE_VIEW(gtk_builder_get_object(builder, "treeview"));
- proc = g_loaded_binary_get_processor(panel->binary);
+ if (panel->binary != NULL)
+ {
+ proc = g_loaded_binary_get_processor(panel->binary);
- virt_col = gtk_tree_view_get_column(treeview, 1);
+ virt_col = gtk_tree_view_get_column(treeview, 1);
- gtk_tree_view_column_set_visible(virt_col, g_arch_processor_has_virtual_space(proc));
+ gtk_tree_view_column_set_visible(virt_col, g_arch_processor_has_virtual_space(proc));
- g_object_unref(G_OBJECT(proc));
+ g_object_unref(G_OBJECT(proc));
+
+ }
model = GTK_TREE_MODEL(gtk_builder_get_object(builder, "filter"));