From e3e2bafd795437a5ad7139d9427b1aefa1e59822 Mon Sep 17 00:00:00 2001 From: Bolian Yin Date: Mon, 8 Dec 2003 10:04:38 +0000 Subject: A small fix from Andrew Wu. svn path=/trunk/; revision=23671 --- a11y/e-table/gal-a11y-e-cell-popup.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/a11y/e-table/gal-a11y-e-cell-popup.c b/a11y/e-table/gal-a11y-e-cell-popup.c index b1485fd42a..88325e726e 100644 --- a/a11y/e-table/gal-a11y-e-cell-popup.c +++ b/a11y/e-table/gal-a11y-e-cell-popup.c @@ -91,11 +91,14 @@ gal_a11y_e_cell_popup_new (ETableItem *item, AtkObject *a11y; GalA11yECell *cell; ECellPopup *popupcell; + ECellView* child_view = NULL; - g_return_val_if_fail (a11y != NULL, NULL); popupcell= E_CELL_POPUP(cell_view->ecell); - ECellView* child_view =popupcell->popup_cell_view->child_view; - if (child_view->ecell) { + + if (popupcell && popupcell->popup_cell_view) + child_view = popupcell->popup_cell_view->child_view; + + if (child_view && child_view->ecell) { a11y = gal_a11y_e_cell_registry_get_object (NULL, item, child_view, -- cgit v1.2.3