[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash on adding contact



Hi,

when adding new contacts (aliases) I get the following error (after
upgrade to ruby 1.9.3):

--- NoMethodError from thread: main
undefined method `email' for "":String
/home/gaute/dev/ruby/sup.git/lib/sup/contact.rb:34:in `update_alias'
/home/gaute/dev/ruby/sup.git/lib/sup/util.rb:572:in `method_missing'
/home/gaute/dev/ruby/sup.git/lib/sup/modes/contact-list-mode.rb:17:in `alias_contact'
/home/gaute/dev/ruby/sup.git/lib/sup/modes/thread-view-mode.rb:259:in `alias'
/home/gaute/dev/ruby/sup.git/lib/sup/mode.rb:59:in `handle_input'
/home/gaute/dev/ruby/sup.git/lib/sup/buffer.rb:278:in `handle_input'
bin/sup:271:in `<module:Redwood>'
bin/sup:80:in `<main>'

The attached patch seems to fix the problem.

Regards,
Gaute

Attachment: 0001-Working-check-for-alias-on-ruby-1.9.3.patch
Description: Binary data