summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcaja-private/caja-file-operations.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index a12d730c..8ddc2ddf 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -2154,7 +2154,7 @@ unmount_mount_callback (GObject *source_object,
}
if (! unmounted) {
- if (error->code != G_IO_ERROR_FAILED_HANDLED) {
+ if (error && error->code != G_IO_ERROR_FAILED_HANDLED) {
if (data->eject) {
primary = f (_("Unable to eject %V"), source_object);
} else {
@@ -5437,7 +5437,7 @@ link_file (CopyMoveJob *job,
details = NULL;
} else {
secondary = f (_("There was an error creating the symlink in %F."), dest_dir);
- details = error->message;
+ details = error ? error->message : NULL;
}
response = run_warning (common,