Skip to content

undefined method `each' for nil:NilClass #17

@OwenRay

Description

@OwenRay

The application throws an exception when trying the example command:

$ ./bin/spotify-export.rb spec/support/multiple-tracks.txt

/Users/owenray/spotify-export/lib/spotify-track.rb:49:in `format_artists': undefined method `each' for nil:NilClass (NoMethodError)
	from /Users/owenray/spotify-export/lib/spotify-track.rb:82:in `get_track_attributes'
	from /Users/owenray/spotify-export/lib/spotify-track.rb:32:in `attributes'
	from /Users/owenray/spotify-export/lib/spotify-track.rb:22:in `name'
	from bin/spotify-export.rb:23:in `block in <main>'
	from bin/spotify-export.rb:20:in `each'
	from bin/spotify-export.rb:20:in `each_with_index'
	from bin/spotify-export.rb:20:in `<main>'

Running on macOS Sierra 10.12.5
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions