2007-02-14 Li Yuan <li.yuan@sun.com>
authorliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 14 Feb 2007 10:06:21 +0000 (10:06 +0000)
committerliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 14 Feb 2007 10:06:21 +0000 (10:06 +0000)
        * libspi/accessible.c:
        (impl_accessibility_accessible_get_attributes):
        Bug #404584. If there is no attributes, just return NULL.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@886 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
libspi/accessible.c

index 1eefca1..e81b79a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-14  Li Yuan  <li.yuan@sun.com>
+
+       * libspi/accessible.c:
+       (impl_accessibility_accessible_get_attributes):
+       Bug #404584. If there is no attributes, just return NULL.
+
 2007-02-12  Li Yuan  <li.yuan@sun.com>
 
        * configure.in, NEWS: Uprev/release 1.17.0.
index d26784c..db19bff 100644 (file)
@@ -461,8 +461,10 @@ impl_accessibility_accessible_get_attributes (PortableServer_Servant servant,
     
     g_return_val_if_fail (object != NULL, NULL);
     attributes = atk_object_get_attributes (object);
-    
-    bonobo_return_val_if_fail (attributes != NULL, NULL, ev);
+
+    if (attributes == NULL)
+      return NULL;
+
     n_attributes = g_slist_length (attributes);
     
     retval = CORBA_sequence_CORBA_string__alloc ();