diff options
author | Andre Miranda <andreldm@xfce.org> | 2017-06-22 22:40:52 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2017-06-22 22:40:52 -0300 |
commit | 1d39355c9296c2bd09768b974b65e5762e97b192 (patch) | |
tree | 0b0619fd3dc680788c5ca558f38817ee8c72d07a /thunar | |
parent | 338e6b941740bae24b64d0a99a4cf8677c7656ff (diff) | |
download | thunar-1d39355c9296c2bd09768b974b65e5762e97b192.tar.gz |
Do not pass NULL to g_file_test
Diffstat (limited to 'thunar')
-rw-r--r-- | thunar/thunar-thumbnailer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thunar/thunar-thumbnailer.c b/thunar/thunar-thumbnailer.c index 308e109d..52daad96 100644 --- a/thunar/thunar-thumbnailer.c +++ b/thunar/thunar-thumbnailer.c @@ -931,7 +931,7 @@ thunar_thumbnailer_queue_files (ThunarThumbnailer *thumbnailer, thumbnail_path = thunar_file_get_thumbnail_path (lp->data); /* test if a thumbnail can be found */ - if (g_file_test (thumbnail_path, G_FILE_TEST_EXISTS)) + if (thumbnail_path != NULL && g_file_test (thumbnail_path, G_FILE_TEST_EXISTS)) thunar_file_set_thumb_state (lp->data, THUNAR_FILE_THUMB_STATE_READY); else thunar_file_set_thumb_state (lp->data, THUNAR_FILE_THUMB_STATE_NONE); |