Index: callbacks.c
===================================================================
RCS file: /cvs/gnome/procman/src/callbacks.c,v
retrieving revision 1.99
diff -u -p -r1.99 callbacks.c
--- callbacks.c	28 Nov 2004 18:43:29 -0000	1.99
+++ callbacks.c	6 Dec 2004 06:33:16 -0000
@@ -464,7 +464,7 @@ get_icon_for_device(GnomeIconTheme *icon
 
 	monitor = gnome_vfs_get_volume_monitor();
 	volume = gnome_vfs_volume_monitor_get_volume_for_path(monitor, mountpoint);
-	i_type = gnome_vfs_volume_get_icon(volume);
+	i_type = (volume != NULL) ? gnome_vfs_volume_get_icon(volume) : NULL;
 	gnome_vfs_volume_unref(volume);
 
 	path = gnome_icon_theme_lookup_icon(icontheme, i_type, 24, NULL, &size);
