Ticket #226 (closed defect: fixed)
avahi-discover crashes if row is unselected
| Reported by: | james_w | Owned by: | lennart |
|---|---|---|---|
| Milestone: | Avahi 0.6.24 | Component: | avahi-python |
| Keywords: | Cc: | jw+debian@… |
Description
Hi,
In
a user reported that avahi-discover crashed for them.
Traceback (most recent call last):
File "/usr/bin/avahi-discover", line 64, in on_tree_view_cursor_changed
(name,interface,protocol,stype,domain) = self.treemodel.get(iter,1,2,3,4,5)
TypeError?: iter must be a GtkTreeIter?
I believe the cause of this was the a row was unselected, meaning that get_selection() returned None for iter, which then was used improperly in treemodel.get()
The attached patch should prevent this from happening. Please consider applying it.
Thanks,
James
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
