GNOME Bugzilla – Bug 467612
impl_accessibility_accessible_get_state should check result of atk_object_ref_state_set
Last modified: 2007-09-13 02:36:23 UTC
If an application specific implementation of atk_object_ref_state_set returns NULL, the code crashes in spi_state_set_new(). See http://www.openoffice.org/issues/show_bug.cgi?id=80589
Is there a reason that an object doesn't have a state_set?
It is probably a bug, even though I think the documentation of AtkObject could be clearer (stating that NULL is not allowed as return value). The correct approach seems to be to return a state_set with just "defunct" in it. However, IMHO libspi should not crash in this case.
Yes, I think it maybe too hard to use g_assert... g_return_val_if_fail is OK I think.
Created attachment 93969 [details] [review] avoid the unnecessary crash by replacing the funcion of g_assert ( )
*** Bug 421514 has been marked as a duplicate of this bug. ***
*** Bug 437958 has been marked as a duplicate of this bug. ***