GNOME Bugzilla – Bug 126479
None iter's in custom TreeModel cause SystemException's
Last modified: 2005-08-22 12:44:07 UTC
If None is returned as an iterator from get_iter in a custom TreeModel implemented in Python, a SystemException is raised when a call to one of the other methods is made with the iterator. This is due to the user_data field of the iterator being set to NULL when None is returned; then when the NULL is passed to CallMethod, a SystemException is raised. I'm attaching a patch that fixes this by using Py_None when the user_data field is NULL.
Created attachment 21288 [details] [review] Patch to handle None iterator values
Fixed in CVS (for both HEAD and the pygtk-2-0 branch)
*** Bug 125172 has been marked as a duplicate of this bug. ***