Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/a11y/ChangeLog,v
retrieving revision 1.31.2.1
diff -u -r1.31.2.1 ChangeLog
--- ChangeLog	28 Apr 2006 03:10:43 -0000	1.31.2.1
+++ ChangeLog	13 Jun 2006 07:23:00 -0000
@@ -1,3 +1,10 @@
+2006-06-13  Li Yuan <li.yuan@sun.com>
+
+	* text.c: (html_a11y_text_get_n_links):
+	Check whether the text still exists before use it.
+
+	Fixes #344190
+
 2006-04-28  Li Yuan  <li.yuan@sun.com>
 
 	* object.c: (gtk_html_a11y_new):
Index: text.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/a11y/text.c,v
retrieving revision 1.19
diff -u -r1.19 text.c
--- text.c	28 Feb 2006 09:37:56 -0000	1.19
+++ text.c	13 Jun 2006 07:23:00 -0000
@@ -1154,6 +1154,8 @@
 html_a11y_text_get_n_links (AtkHypertext *hypertext)
 {
 	HTMLText *text = HTML_TEXT (HTML_A11Y_HTML (hypertext));
+	if (!text || ! HTML_IS_TEXT (text))
+		return 0;
 	return g_slist_length (text->links);
 }
 
