mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
Fixed null Uri issue when playing adds
Checks for null Uri before attempting to read it
This commit is contained in:
parent
55505a008e
commit
9158518994
@ -28,8 +28,9 @@ namespace SpotifyAPI.Local.Models
|
||||
/// <returns>A String, which is the URL to the Albumart</returns>
|
||||
public String GetAlbumArtUrl(AlbumArtSize size)
|
||||
{
|
||||
if (AlbumResource.Uri.Contains("local"))
|
||||
if (AlbumResource.Uri == null || AlbumResource.Uri.Contains("local"))
|
||||
return "";
|
||||
|
||||
int albumsize = 0;
|
||||
switch (size)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user