diff options
-rw-r--r-- | thunar/thunar-launcher.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/thunar/thunar-launcher.c b/thunar/thunar-launcher.c index e00cb72d..b51737b1 100644 --- a/thunar/thunar-launcher.c +++ b/thunar/thunar-launcher.c @@ -911,6 +911,12 @@ thunar_launcher_poke (ThunarLauncher *launcher, _thunar_return_if_fail (THUNAR_IS_LAUNCHER (launcher)); + if (launcher->files_to_process == NULL) + { + g_warning("No files to process. thunar_launcher_poke aborted."); + return; + } + poke_data = thunar_launcher_poke_data_new (launcher->files_to_process, application_to_use, folder_open_action); if (launcher->device_to_process != NULL) |