banshee r4760 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.Widgets



Author: gburt
Date: Sat Oct 25 18:50:54 2008
New Revision: 4760
URL: http://svn.gnome.org/viewvc/banshee?rev=4760&view=rev

Log:
2008-10-25  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs:
	Patch from Cosmin Banu to prevent NRE (BGO #557867).



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs	Sat Oct 25 18:50:54 2008
@@ -399,7 +399,7 @@
                 Log.DebugFormat ("TrackInfoDisplay RenderAnimation: {0:0.00} FPS", last_fps);
             }
             
-            if (current_image != incoming_image && !IsMissingImage (current_image)) {
+            if (current_image != null && current_image != incoming_image && !IsMissingImage (current_image)) {
                 current_image.Destroy ();
             }
             



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