From 34d802de778bcf2a8cdfda190c7d3823c59a25fd Mon Sep 17 00:00:00 2001
From: Alexander Schwinn <alexxcons@xfce.org>
Date: Fri, 11 Sep 2020 23:04:03 +0200
Subject: [PATCH] Prevent crash when thumbnailer is not defined (#385)

---
 thunar/thunar-thumbnailer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/thunar/thunar-thumbnailer.c b/thunar/thunar-thumbnailer.c
index 5a10bf07a..14c8f02c8 100644
--- a/thunar/thunar-thumbnailer.c
+++ b/thunar/thunar-thumbnailer.c
@@ -329,7 +329,8 @@ thunar_thumbnailer_queue_async_reply (GObject      *proxy,
 
   thumbnailer = THUNAR_THUMBNAILER (job->thumbnailer);
 
-  _thunar_return_if_fail (THUNAR_IS_THUMBNAILER (thumbnailer));
+  if (THUNAR_IS_THUMBNAILER (thumbnailer) == FALSE)
+    return;
 
   _thumbnailer_lock (thumbnailer);
 
-- 
GitLab