diff options
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r-- | libcaja-private/caja-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index d80629e2..054f27d5 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -694,7 +694,7 @@ caja_file_get_internal (GFile *location, gboolean create) /* Ref or create the file. */ if (file != NULL) { caja_file_ref (file); - } else if (create) { + } else if (create && directory != NULL) { file = caja_file_new_from_filename (directory, basename, self_owned); if (self_owned) { g_assert (directory->details->as_file == NULL); |