diff options
Diffstat (limited to 'gtk/gtkfilechooser.c')
-rw-r--r-- | gtk/gtkfilechooser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkfilechooser.c b/gtk/gtkfilechooser.c index 3f9b943f8..55689952b 100644 --- a/gtk/gtkfilechooser.c +++ b/gtk/gtkfilechooser.c @@ -717,6 +717,9 @@ gtk_file_chooser_get_current_folder (GtkFileChooser *chooser) file_system = _gtk_file_chooser_get_file_system (chooser); path = _gtk_file_chooser_get_current_folder_path (chooser); + if (!path) + return NULL; + filename = gtk_file_system_path_to_filename (file_system, path); gtk_file_path_free (path); |