Skip to content

Commit 9158518

Browse files
author
cory_shivers
committed
Fixed null Uri issue when playing adds
Checks for null Uri before attempting to read it
1 parent 55505a0 commit 9158518

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎SpotifyAPI/Local/Models/Track.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ public class Track
2828
/// <returns>A String, which is the URL to the Albumart</returns>
2929
public String GetAlbumArtUrl(AlbumArtSize size)
3030
{
31-
if (AlbumResource.Uri.Contains("local"))
31+
if (AlbumResource.Uri == null || AlbumResource.Uri.Contains("local"))
3232
return "";
33+
3334
int albumsize = 0;
3435
switch (size)
3536
{

0 commit comments

Comments
 (0)