[banshee: 3/61] Allow null Uris in DatabaseTrackInfo



commit 5cbcc2bc76166c93cb51b96109c661187a724b4e
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Oct 7 11:30:57 2009 -0700

    Allow null Uris in DatabaseTrackInfo

 .../DatabaseTrackInfo.cs                           |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
index 57abea6..e78244d 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
@@ -369,8 +369,8 @@ namespace Banshee.Collection.Database
 
         [DatabaseColumn ("Uri")]
         protected string UriField {
-            get { return Uri.AbsoluteUri; }
-            set { Uri = new SafeUri (value); }
+            get { return Uri == null ? null : Uri.AbsoluteUri; }
+            set { Uri = value == null ? null : new SafeUri (value); }
         }
         
         [DatabaseColumn]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]