banshee r3631 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Collection.Database
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3631 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Collection.Database
- Date: Tue, 1 Apr 2008 00:34:06 +0100 (BST)
Author: gburt
Date: Tue Apr 1 00:34:06 2008
New Revision: 3631
URL: http://svn.gnome.org/viewvc/banshee?rev=3631&view=rev
Log:
2008-03-31 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseAlbumInfo.cs:
* src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseArtistInfo.cs:
* src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs:
Handle Title/Name being null in *Lowered getter. Fixes BGO #525448.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseAlbumInfo.cs
trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseArtistInfo.cs
trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseAlbumInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseAlbumInfo.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseAlbumInfo.cs Tue Apr 1 00:34:06 2008
@@ -143,7 +143,7 @@
[DatabaseColumn(Select = false)]
protected string TitleLowered {
- get { return Title.ToLower (); }
+ get { return Title == null ? null : Title.ToLower (); }
}
[VirtualDatabaseColumn("Name", "CoreArtists", "ArtistID", "ArtistID")]
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseArtistInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseArtistInfo.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseArtistInfo.cs Tue Apr 1 00:34:06 2008
@@ -129,7 +129,7 @@
[DatabaseColumn(Select = false)]
protected string NameLowered {
- get { return Name.ToLower (); }
+ get { return Name == null ? null : Name.ToLower (); }
}
public override string ToString ()
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs Tue Apr 1 00:34:06 2008
@@ -285,7 +285,7 @@
[DatabaseColumn(Select = false)]
protected string TitleLowered {
- get { return TrackTitle.ToLower (); }
+ get { return TrackTitle == null ? null : TrackTitle.ToLower (); }
}
[DatabaseColumn]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]