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):
This commit is contained in:
Gene Z. Ragan 2001-02-03 00:20:40 +00:00 committed by Gene Ragan
parent 72a3e3718f
commit 82910256d7
2 changed files with 8 additions and 1 deletions

View file

@ -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>

View file

@ -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);