banshee r3658 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.SmartPlaylist
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3658 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.SmartPlaylist
- Date: Thu, 3 Apr 2008 21:55:21 +0100 (BST)
Author: gburt
Date: Thu Apr 3 21:55:20 2008
New Revision: 3658
URL: http://svn.gnome.org/viewvc/banshee?rev=3658&view=rev
Log:
2008-04-03 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs:
Avoid NRE when loading dependents of smart playlist.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs Thu Apr 3 21:55:20 2008
@@ -243,8 +243,10 @@
if (ConditionTree != null) {
foreach (SmartPlaylistQueryValue value in ConditionTree.SearchForValues<SmartPlaylistQueryValue> ()) {
SmartPlaylistSource playlist = value.ObjectValue;
- playlist.Updated += OnDependencyUpdated;
- dependencies.Add (playlist);
+ if (playlist != null) {
+ playlist.Updated += OnDependencyUpdated;
+ dependencies.Add (playlist);
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]