[gedit] Do not apply attributes if the internal info doesn't exists



commit a14fbfa10a400f3c69480265c1818e3199e8ce9d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Nov 30 12:51:47 2009 +0100

    Do not apply attributes if the internal info doesn't exists

 gedit/gedit-document.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index a221f00..9f6d426 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -2554,6 +2554,9 @@ filter_metadata_attributes (GeditDocument *doc,
 	GFileInfo *metadata_info;
 	gchar **attributes, **ptr;
 
+	if (doc->priv->metadata_info == NULL)
+		return NULL;
+
 	if (g_file_info_has_namespace (info, "metadata"))
 		attributes = g_file_info_list_attributes (info, "metadata");
 	else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]