eltoncezar / Spofy

A Spotify mini player and notifier for Windows
GNU General Public License v2.0
65 stars 17 forks source link

NullException on loading cover #12

Closed admarcel closed 8 years ago

admarcel commented 8 years ago

Hello,

When i'm launching Spofy from Visual studio, the app crash with a NullException.

Spofy can't load the AlbumArt from SpotifyManager.cs at line 178.

_currentLargeCover = await _currentTrack.GetAlbumArtAsync(AlbumArtSize.Size640);
_currentSmallCoverUrl = _currentTrack.GetAlbumArtUrl(AlbumArtSize.Size160);

To get spofy running, if have to check if currentLargeCover is null

if(_currentLargeCover)
            model.Image = _currentLargeCover;
}

At this moment, I can pass to next song and get title.

Is it a problem linked with my computer ? fresh install of win 10 Spotify version 1.0.25.127.g58007b4c ? Can it be a problem from SpotifyAPI-NET ? spofy cloned from master.

Thank you

eltoncezar commented 8 years ago

Hi,

Indeed, this is a strange behavior. Could you please tell me what Visual Studio and Windows version are you using? Will look into it.

admarcel commented 8 years ago

Windows 10 and Visual studio 2015

admarcel commented 8 years ago

I just try the example of SpotifyAPI-NET, this can't load the art too.

capture
eltoncezar commented 8 years ago

After all, there was a change in Spotify's side, so just updating the SpotifyAPI-NET dll fixed it. Thanks for the PR, @admarcel!