From e8d91511d4fd35eb583238d3c755747ec535dc2e Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 1 Oct 2015 17:38:53 +0300 Subject: don't crash when opening archives on network drive (ftp, smb, ...) fixes https://github.com/mate-desktop/engrampa/issues/85 --- src/fr-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fr-window.c b/src/fr-window.c index 968972b..ed6f76a 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -2683,7 +2683,7 @@ fr_window_progress_cb (FrArchive *archive, gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (window->priv->pd_progress_bar), fraction); gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (window->priv->progress_bar), fraction); - if ((archive != NULL) && (archive->command->n_files > 0)) { + if ((archive != NULL) && (archive->command != NULL) && (archive->command->n_files > 0)) { char *message = NULL; int remaining_files; -- cgit v1.2.1