summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGene Z. Ragan <gzr@eazel.com>2001-02-03 00:20:40 +0000
committerGene Ragan <gzr@src.gnome.org>2001-02-03 00:20:40 +0000
commit82910256d76ed0e5bda4d25d82c1eea6c214fbac (patch)
tree0f132351d970882b96033067aff8ad7c32b8df73
parent72a3e3718f78e8455c10325beeea177b28d35351 (diff)
downloadnautilus-82910256d76ed0e5bda4d25d82c1eea6c214fbac.tar.gz
Fixed a small bug where I was assuming a value would be valid when it
2001-02-02 Gene Z. Ragan <gzr@eazel.com> Fixed a small bug where I was assuming a value would be valid when it could be NULL. Now I check for NULL. * src/nautilus-application.c: (volume_unmounted_callback):
-rw-r--r--ChangeLog7
-rw-r--r--src/nautilus-application.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 679895558..c46993d96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-02-02 Gene Z. Ragan <gzr@eazel.com>
+
+ Fixed a small bug where I was assuming a value would be valid
+ when it could be NULL. Now I check for NULL.
+
+ * src/nautilus-application.c: (volume_unmounted_callback):
+
2001-02-02 Brett Neely <brett@eazel.com>
reviewed by: Eric Fischer <eric@eazel.com>
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 2edc68970..3d4fa3b72 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -704,7 +704,7 @@ volume_unmounted_callback (NautilusVolumeMonitor *monitor, NautilusVolume *volum
/* Construct a list of windows to be closed */
for (index = windows; index != NULL; index = index->next) {
window = (NautilusWindow *)index->data;
- if (window != NULL) {
+ if (window != NULL && window->details->viewed_file != NULL) {
text_uri = nautilus_file_get_uri (window->details->viewed_file);
uri = gnome_vfs_uri_new (text_uri);
g_free (text_uri);