[anjuta] project-manager: Fix G_IS_FILE (file1) fatal warning



commit ceb56336584b8ff69d2bb00a2f51c3633576921d
Author: Johannes Schmid <jhs gnome org>
Date:   Wed Nov 24 11:03:29 2010 +0100

    project-manager: Fix G_IS_FILE (file1) fatal warning

 plugins/project-manager/tree-data.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-manager/tree-data.c b/plugins/project-manager/tree-data.c
index cb7ce21..cbccacf 100644
--- a/plugins/project-manager/tree-data.c
+++ b/plugins/project-manager/tree-data.c
@@ -180,7 +180,8 @@ gbf_tree_data_equal_file (GbfTreeData *data, AnjutaProjectNodeType type, GFile *
 		{
 			if ((type == ANJUTA_PROJECT_UNKNOWN) || (type == anjuta_project_node_get_node_type (node)))
 			{
-				if (g_file_equal (anjuta_project_node_get_file (node), file))
+				GFile* node_file = anjuta_project_node_get_file (node);
+				if (node_file && g_file_equal (node_file, file))
 				{
 					equal = TRUE;
 				}



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