2008-03-19 Li Yuan <li.yuan@sun.com>
authorliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 19 Mar 2008 09:05:36 +0000 (09:05 +0000)
committerliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 19 Mar 2008 09:05:36 +0000 (09:05 +0000)
        * 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

ChangeLog
libspi/document.c

index a92a26a..3cd9300 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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):
        Bug #520490. Remove unused call.
 
index fdc912b..3965e87 100644 (file)
@@ -105,10 +105,9 @@ impl_getAttributes (PortableServer_Servant servant,
   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);