mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
add null check in fanart provider
This commit is contained in:
parent
c4c4237200
commit
14fe4ab95c
1 changed files with 8 additions and 1 deletions
|
@ -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…
Reference in a new issue