[banshee] [Services] Prevent NRE caused in DatabaseTrackInfo.Update()
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Services] Prevent NRE caused in DatabaseTrackInfo.Update()
- Date: Tue, 5 Oct 2010 15:51:45 +0000 (UTC)
commit 0c10e621e6b92303bcee9364a0f4b4f4439c859b
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Tue Oct 5 03:49:43 2010 +0200
[Services] Prevent NRE caused in DatabaseTrackInfo.Update()
The infrastructure commit for bgo#589196 unfortunately caused bgo#631277
.../DatabaseTrackInfo.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
index f83a441..016c1a6 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs
@@ -170,7 +170,9 @@ namespace Banshee.Collection.Database
public override void Update ()
{
- PrimarySource.UpdateMetadata (this);
+ if (PrimarySource != null) {
+ PrimarySource.UpdateMetadata (this);
+ }
base.Update ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]