aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--a11y/ChangeLog6
-rw-r--r--a11y/calendar/ea-day-view-main-item.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/a11y/ChangeLog b/a11y/ChangeLog
index 0846e68111..8484ee11e0 100644
--- a/a11y/ChangeLog
+++ b/a11y/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-19 Li Yuan <liyuan@tackle>
+
+ * calendar/ea-day-view-main-item.c:
+ (ea_day_view_main_item_get_name):
+ Bug #459413. Just return NULL if parent has gone.
+
2007-04-19 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #429422
diff --git a/a11y/calendar/ea-day-view-main-item.c b/a11y/calendar/ea-day-view-main-item.c
index f3f43c9a6f..2699b457a9 100644
--- a/a11y/calendar/ea-day-view-main-item.c
+++ b/a11y/calendar/ea-day-view-main-item.c
@@ -290,6 +290,10 @@ ea_day_view_main_item_get_name (AtkObject *accessible)
AtkObject *parent;
g_return_val_if_fail (EA_IS_DAY_VIEW_MAIN_ITEM (accessible), NULL);
parent = atk_object_get_parent (accessible);
+
+ if (!parent)
+ return NULL;
+
return atk_object_get_name (parent);
}