Commit 8e610578 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

check if variable is null before using it

parent e157afe3
......@@ -1295,6 +1295,11 @@ requested_folder_attributes_ready_cb (GObject *file_source,
if (browser->priv->location == NULL) {
load_data_free (load_data);
gth_file_data_set_info (browser->priv->location, load_data->requested_folder->info);
browser->priv->current_sort_type = gth_main_get_sort_type (g_file_info_get_attribute_string (browser->priv->location->info, "sort::type"));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment