From 92ea68bf7f7238b188487d9a39cc41f991c86fbe Mon Sep 17 00:00:00 2001 From: Andre Miranda Date: Mon, 4 Dec 2017 11:39:29 -0300 Subject: [PATCH] Fix crash on unavailable file move copy (Bug 14056) --- thunar/thunar-dialogs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thunar/thunar-dialogs.c b/thunar/thunar-dialogs.c index 1ad8905a..9fbf3bd8 100644 --- a/thunar/thunar-dialogs.c +++ b/thunar/thunar-dialogs.c @@ -308,7 +308,7 @@ thunar_dialogs_show_error (gpointer parent, _thunar_return_if_fail (parent == NULL || GDK_IS_SCREEN (parent) || GTK_IS_WIDGET (parent)); /* do not display error dialog for already handled errors */ - if (error->code == G_IO_ERROR_FAILED_HANDLED) + if (error && error->code == G_IO_ERROR_FAILED_HANDLED) return; /* parse the parent pointer */ -- 2.15.0