banshee r4609 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Collection.Database
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4609 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Collection.Database
- Date: Wed, 24 Sep 2008 21:22:20 +0000 (UTC)
Author: gburt
Date: Wed Sep 24 21:22:20 2008
New Revision: 4609
URL: http://svn.gnome.org/viewvc/banshee?rev=4609&view=rev
Log:
2008-09-24 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs:
Fix NRE (BGO #553665) when editing audio cd tracks.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
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 Wed Sep 24 21:22:20 2008
@@ -305,7 +305,7 @@
[DatabaseColumn ("Uri")]
protected string UriField {
get {
- if (uri_fields_dirty && Uri != null) {
+ if (uri_fields_dirty && Uri != null && PrimarySource != null) {
PrimarySource.UriToFields (Uri, out uri_type, out uri_field);
uri_fields_dirty = false;
}
@@ -322,7 +322,7 @@
[DatabaseColumn ("UriType")]
protected TrackUriType UriType {
get {
- if (uri_fields_dirty && Uri != null) {
+ if (uri_fields_dirty && Uri != null && PrimarySource != null) {
PrimarySource.UriToFields (Uri, out uri_type, out uri_field);
uri_fields_dirty = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]