Commit 82910256 authored by Gene Z. Ragan's avatar Gene Z. Ragan Committed by Gene Ragan
Browse files

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):
parent 72a3e371
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>
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment