summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-desktop-directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-desktop-directory.c')
-rw-r--r--libcaja-private/caja-desktop-directory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcaja-private/caja-desktop-directory.c b/libcaja-private/caja-desktop-directory.c
index de998cd2..5ec63864 100644
--- a/libcaja-private/caja-desktop-directory.c
+++ b/libcaja-private/caja-desktop-directory.c
@@ -162,6 +162,10 @@ directory_ready_callback (CajaDirectory *directory,
g_assert (callback_data != NULL);
merged_callback = callback_data;
+ /*Prevent segfaults on the assert with GTK 3.23*/
+ if (merged_callback->non_ready_directories == NULL)
+ return;
+
g_assert (g_list_find (merged_callback->non_ready_directories, directory) != NULL);
/* Update based on this call. */