Permalink
Browse files

fix crash in browselist

  * browselist.rb:50:in `initialize': undefined method `path' for nil:NilClass
  • Loading branch information...
1 parent fcdd1fe commit 1abb292a732e52e6dc32bc17eb31db5a300bb1fe @antono committed Jul 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rbbr/ui/gtk/browselist.rb
View
2 lib/rbbr/ui/gtk/browselist.rb
@@ -47,7 +47,7 @@ def initialize(labels)
end
signal_connect("cursor-changed") do
- data = selection.selected.path.to_str
+ data = selection.selected.path.to_str if selection.selected
if @first
@first = false
save_memento(nil)

0 comments on commit 1abb292

Please sign in to comment.