add null check in fanart provider

This commit is contained in:
Luke Pulverenti 2016-01-19 11:09:33 -05:00
parent c4c4237200
commit 14fe4ab95c

View File

@ -68,7 +68,14 @@ namespace MediaBrowser.Providers.Music
var list = new List<RemoteImageInfo>(); 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)) if (!string.IsNullOrEmpty(artistMusicBrainzId))
{ {