* libspi/document.c: (impl_getAttributes):
Bug #451553. Return NULL is there are no attributes. Patch from Ginn
Chen.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@999
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2008-03-19 Li Yuan <li.yuan@sun.com>
+
+ * libspi/document.c: (impl_getAttributes):
+ Bug #451553. Return NULL is there are no attributes. Patch from Ginn
+ Chen.
+
2008-03-19 Li Yuan <li.yuan@sun.com>
* atk-bridge/bridge.c: (spi_atk_emit_eventv):
g_return_val_if_fail (document != NULL, NULL);
attributes = atk_document_get_attributes (document);
-
- bonobo_return_val_if_fail (attributes != NULL, NULL, ev);
- bonobo_return_val_if_fail (attributes != NULL, NULL, ev);
+ if (!attributes)
+ return NULL;
/* according to atkobject.h, AtkAttributeSet is a GSList */
n_attributes = g_slist_length (attributes);