summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Schwinn <alexxcons@xfce.org>2021-05-06 23:26:26 +0200
committerAlexander Schwinn <alexxcons@xfce.org>2021-05-06 23:32:10 +0200
commit2dd24e7deaf188db1ede590e2c51cade2b916649 (patch)
treecd979c3bcb0780703ab12138737e44683c144f70
parent46e0fda6ca77757ddab583e5e8fb212e9bff3708 (diff)
downloadthunar-2dd24e7deaf188db1ede590e2c51cade2b916649.tar.gz
Prevent crash if non-existing bookmark is right-clicked (Issue #552)
-rw-r--r--thunar/thunar-shortcuts-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thunar/thunar-shortcuts-view.c b/thunar/thunar-shortcuts-view.c
index fdca0ff2..c2dd1c3b 100644
--- a/thunar/thunar-shortcuts-view.c
+++ b/thunar/thunar-shortcuts-view.c
@@ -1217,7 +1217,7 @@ thunar_shortcuts_view_context_menu (ThunarShortcutsView *view,
if (location != NULL && file == NULL)
{
file = thunar_file_get (location, NULL);
- if (thunar_file_exists (file) == FALSE)
+ if (file != NULL && thunar_file_exists (file) == FALSE)
{
g_object_unref (G_OBJECT (file));
file = NULL;