banshee r4128 - in trunk/banshee: . src/Extensions/Banshee.Podcasting/Banshee.Podcasting



Author: gburt
Date: Thu Jun  5 18:22:30 2008
New Revision: 4128
URL: http://svn.gnome.org/viewvc/banshee?rev=4128&view=rev

Log:
2008-06-05  Gabriel Burt  <gabriel burt gmail com>

	* src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs:
	Avoid NRE.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs

Modified: trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs	Thu Jun  5 18:22:30 2008
@@ -178,7 +178,7 @@
                 ServiceManager.DbConnection.Execute ("UPDATE PodcastItems SET Guid = NULL");
                 foreach (FeedItem item in FeedItem.Provider.FetchAll ()) {
                     item.Guid = null;
-                    if (FeedItem.Exists (item.Feed.DbId, item.Guid)) {
+                    if (item.Feed == null || FeedItem.Exists (item.Feed.DbId, item.Guid)) {
                         item.Delete (false);
                     } else {
                         item.Save ();



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