add null check in fanart provider

pull/702/head
Luke Pulverenti 9 years ago
parent d2dfb4b0a0
commit a04f4421bd

@ -68,7 +68,14 @@ namespace MediaBrowser.Providers.Music
var list = new List<RemoteImageInfo>();
var artistMusicBrainzId = album.MusicArtist.GetProviderId(MetadataProviders.MusicBrainzArtist);
var musicArtist = album.MusicArtist;
if (musicArtist == null)
{
return list;
}
var artistMusicBrainzId = musicArtist.GetProviderId(MetadataProviders.MusicBrainzArtist);
if (!string.IsNullOrEmpty(artistMusicBrainzId))
{

Loading…
Cancel
Save