After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 639032 - NRE in LastFmStreaming causes warning
NRE in LastFmStreaming causes warning
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Last.fm
git master
Other Linux
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-09 02:00 UTC by Andrés G. Aragoneses (IRC: knocte)
Modified: 2011-01-12 20:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrés G. Aragoneses (IRC: knocte) 2011-01-09 02:00:52 UTC
Although this doesn't make Banshee crash, because the exception is simply logged, a NRE is always a bug:

[1 Warn  02:55:26.004] Error Loading Last.fm Station - System.NullReferenceException: Object reference not set to an instance of an object
  at Banshee.LastfmStreaming.Radio.StationSource.set_Type (Banshee.LastfmStreaming.Radio.StationType value) [0x00007] in /home/knocte/Documentos/banshee/src/Extensions/Banshee.LastfmStreaming/Banshee.LastfmStreaming/StationSource.cs:95 
  at Banshee.LastfmStreaming.Radio.StationSource..ctor (Banshee.Lastfm.LastfmSource lastfm, Int32 dbId, System.String name, System.String type, System.String arg, Int32 playCount) [0x00026] in /home/knocte/Documentos/banshee/src/Extensions/Banshee.LastfmStreaming/Banshee.LastfmStreaming/StationSource.cs:123 
  at Banshee.LastfmStreaming.Radio.StationSource.LoadAll (Banshee.Lastfm.LastfmSource lastfm, System.String creator) [0x0002c] in /home/knocte/Documentos/banshee/src/Extensions/Banshee.LastfmStreaming/Banshee.LastfmStreaming/StationSource.cs:568
Comment 1 Bertrand Lorentz 2011-01-12 20:08:21 UTC
This exception was triggered by having a "Loved" Last.fm station in the database, which is not supported anymore, since it was discontinued by Last.fm

I've just committed a fix that removes those stations from the database :
http://git.gnome.org/browse/banshee/commit/?id=aa86f5c8