diff options
-rw-r--r-- | libnautilus-private/nautilus-directory.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-directory.c b/libnautilus-private/nautilus-directory.c index dc95998c2..29a35f95d 100644 --- a/libnautilus-private/nautilus-directory.c +++ b/libnautilus-private/nautilus-directory.c @@ -639,7 +639,10 @@ nautilus_directory_is_remote (NautilusDirectory *directory) const gchar *type; type = g_file_info_get_attribute_string (info, "filesystem::type"); - is_remote = g_strv_contains (remote_types, type); + if (type != NULL) + is_remote = g_strv_contains (remote_types, type); + else + is_remote = FALSE; g_object_unref (info); } else { |