gauda/klastfm — Issue #4: nil on Fedora & Arch
Author: jrub
Created: 2012-01-19 15:27:53+00:00
State: open

I got this error on Fedora 16:

```bash
[jrub@jrub klastfm]$ ruby ./klastfm
getting all tracks you ever submitted to last.fm (ca. 2550)
get playcount: 100% |ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:01:35

creating a statistic entry for every track
creating stat: 100% |ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:01

getting all tracks played in the last 361 weeks
./lib/klastfm.rb:84:in `date_tracks': undefined method `each' for nil:NilClass (NoMethodError) | ETA: --:--:--
from ./lib/klastfm.rb:82:in `each'
from ./lib/klastfm.rb:82:in `date_tracks'
from ./klastfm:16
from /usr/lib/ruby/gems/1.8/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
from /usr/lib/ruby/gems/1.8/gems/activerecord-3.1.3/lib/active_record/transactions.rb:208:in `transaction'
from ./klastfm:13
```

It seems to happen on Arch too: http://kde-apps.org/content/show.php?content=127016&forumpage=4#commentvoter422679