mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 15:06:26 +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>
|
/// <returns>A String, which is the URL to the Albumart</returns>
|
||||||
public String GetAlbumArtUrl(AlbumArtSize size)
|
public String GetAlbumArtUrl(AlbumArtSize size)
|
||||||
{
|
{
|
||||||
if (AlbumResource.Uri.Contains("local"))
|
if (AlbumResource.Uri == null || AlbumResource.Uri.Contains("local"))
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
int albumsize = 0;
|
int albumsize = 0;
|
||||||
switch (size)
|
switch (size)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user