banshee r3448 - in trunk/banshee: . src/Core/Banshee.Core/Banshee.Collection



Author: abock
Date: Thu Mar 13 18:35:07 2008
New Revision: 3448
URL: http://svn.gnome.org/viewvc/banshee?rev=3448&view=rev

Log:
2008-03-13  Aaron Bockover  <abock gnome org>

    * src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs: Protect against
    NRE when comparing track objects



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs

Modified: trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs	Thu Mar 13 18:35:07 2008
@@ -86,7 +86,7 @@
 
         public virtual bool TrackEqual (TrackInfo track)
         {
-            if (track == null) {
+            if (track == null || track.Uri == null || Uri == null) {
                 return false;
             }
             



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