AttributeError: 'NoneType' object has no attribute 'get_selected'
Bug #920009 reported by
Curtis Hovey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar GTK+ Frontends |
Fix Released
|
High
|
Curtis Hovey |
Bug Description
I consistently see an error when committing:
/usr/lib/
import gobject._gobject
Traceback (most recent call last):
File "/home/
(model, selection) = treeselection.
AttributeError: 'NoneType' object has no attribute 'get_selected'
The commit is successful, maybe this error is happening when the window is being torn down.
The method exist early if there is no selection. The method could also exit early if there is notreeselection
Related branches
lp://staging/~sinzui/bzr-gtk/precise-commit-1
- Jelmer Vernooij (community): Approve
-
Diff: 42 lines (+22/-0)2 files modifiedcommit.py (+3/-0)
tests/test_commit.py (+19/-0)
Changed in bzr-gtk: | |
status: | In Progress → Fix Committed |
Changed in bzr-gtk: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think treeselection can only be None during the destroy event. I see in the c-code that tree_view- >priv-> selection is assigned only twice. first on init and last on destroy.