Skip to content

artist.GetTopAlbums() - Nullreference Exception #12

@GoogleCodeExporter

Description

@GoogleCodeExporter
public void GetAllAlbums(string Artist)
{
            ArtistSearch art = new ArtistSearch(Artist, session);
            Artist artist = art.GetFirstMatch();

            TopAlbum[] albums;

            try 
            {
                artist.GetTopTracks();
                albums = artist.GetTopAlbums();
            } 
            catch (Exception e) 
            {
                Console.WriteLine(e.Message);
                return;
            }

            foreach (TopAlbum album in albums)
                Console.WriteLine(album.Item);
}

The same piece of code worked fine yesterday, today it throws a 
NullReferenceException. Other methods like GetTopTracks() is working fine.


Original issue reported on code.google.com by Fanatic....@gmail.com on 12 Jul 2012 at 12:43

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions