Index: src/file-manager/fm-directory-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-directory-view.c,v
retrieving revision 1.628
diff -u -r1.628 fm-directory-view.c
--- src/file-manager/fm-directory-view.c	16 Jul 2004 11:43:24 -0000	1.628
+++ src/file-manager/fm-directory-view.c	21 Jul 2004 19:08:26 -0000
@@ -3970,9 +3970,6 @@
 	guessed_description = gnome_vfs_mime_get_description (guessed_mime_type);
 	real_description = gnome_vfs_mime_get_description (mime_type);
 
-	g_free (guessed_mime_type);
-	g_free (mime_type);
-	
 	name = nautilus_file_get_name (file);
 
 	primary = g_strdup_printf (_("Cannot open %s"), name);
@@ -3987,10 +3984,13 @@
 		   "Alternatively, use the Open With menu to choose a specific application "
 		   "for the file. "),
 		 name, 
-		 guessed_description, 
-		 real_description,
-		 real_description);
-	
+		 guessed_description ? guessed_description : guessed_mime_type, 
+		 real_description ? real_description : mime_type,
+		 real_description ? real_description : mime_type);
+
+	g_free (guessed_mime_type);
+	g_free (mime_type);
+
 	dialog = eel_alert_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (view))),
 				       0,
 				       GTK_MESSAGE_ERROR,
