diff options
Diffstat (limited to 'MediaBrowser.Controller/Providers/Music/LastfmArtistProvider.cs')
| -rw-r--r-- | MediaBrowser.Controller/Providers/Music/LastfmArtistProvider.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/Providers/Music/LastfmArtistProvider.cs b/MediaBrowser.Controller/Providers/Music/LastfmArtistProvider.cs index dc73b5ae1d..0e56b8c08c 100644 --- a/MediaBrowser.Controller/Providers/Music/LastfmArtistProvider.cs +++ b/MediaBrowser.Controller/Providers/Music/LastfmArtistProvider.cs @@ -55,15 +55,18 @@ namespace MediaBrowser.Controller.Providers.Music // Try to find the id using last fm var result = await FindIdFromLastFm(item, cancellationToken).ConfigureAwait(false); - if (!string.IsNullOrEmpty(result.Item1)) + if (result != null) { - return result.Item1; - } + if (!string.IsNullOrEmpty(result.Item1)) + { + return result.Item1; + } - // If there were no artists returned at all, then don't bother with musicbrainz - if (!result.Item2) - { - return null; + // If there were no artists returned at all, then don't bother with musicbrainz + if (!result.Item2) + { + return null; + } } try |
