Index: ChangeLog
===================================================================
--- ChangeLog	(Revision 4581)
+++ ChangeLog	(Arbeitskopie)
@@ -1,3 +1,11 @@
+2009-01-12  Jens Georg  <mail@jensge.org>
+
+	* plugins/project-manager/plugin.c: 
+	* plugins/build-basic-autotools/configuration-list.c: 
+	Fix problem that it is not possible to generate a new project
+	on NFS and subsequent crash in project configuration. 
+	Partial port of project-manager to GIO
+
 2009-01-12  Massimo Cora'  <mcora@svn.gnome.org>
 
 	* plugins/symbol-db/plugin.c (do_update_project_symbols),
Index: plugins/build-basic-autotools/configuration-list.c
===================================================================
--- plugins/build-basic-autotools/configuration-list.c	(Revision 4581)
+++ plugins/build-basic-autotools/configuration-list.c	(Arbeitskopie)
@@ -235,9 +235,10 @@
 		/* Add configuration */
 		cfg = g_new0 (BuildConfiguration, 1);
 		cfg->name = g_strdup (name);
-		for (prev = build_configuration_list_get_first (list); prev->next != NULL; prev = prev->next) ;
+		for (prev = build_configuration_list_get_first (list); prev != NULL && prev->next != NULL; prev = prev->next) ;
 		cfg->prev = prev;
-		prev->next = cfg;
+		if (prev != NULL)
+			prev->next = cfg;
 	}
 	list->selected = cfg;
 	
Index: plugins/project-manager/plugin.c
===================================================================
--- plugins/project-manager/plugin.c	(Revision 4581)
+++ plugins/project-manager/plugin.c	(Arbeitskopie)
@@ -108,26 +108,18 @@
 static gchar*
 get_session_dir (ProjectManagerPlugin *plugin)
 {
-	GnomeVFSURI *vfs_uri;
 	gchar *session_dir = NULL;
+	gchar *local_dir;
 	
 	g_return_val_if_fail (plugin->project_root_uri, NULL);
 	
-	vfs_uri = gnome_vfs_uri_new (plugin->project_root_uri);
-	if (vfs_uri && gnome_vfs_uri_is_local (vfs_uri))
+	local_dir = anjuta_util_get_local_path_from_uri (plugin->project_root_uri);
+	if (local_dir)
 	{
-		gchar *local_dir;
-		
-		local_dir = gnome_vfs_get_local_path_from_uri (plugin->project_root_uri);
-		if (local_dir)
-		{
-			session_dir = g_build_filename (local_dir, ".anjuta", "session",
-											NULL);
-		}
-		g_free (local_dir);
+		session_dir = g_build_filename (local_dir, ".anjuta", "session",
+										NULL);
 	}
-	if (vfs_uri)
-		gnome_vfs_uri_unref (vfs_uri);
+	g_free (local_dir);
 	
 	return session_dir;
 }
