banshee r4228 - in trunk/banshee: . src/Core/Banshee.Widgets/Banshee.Widgets



Author: gburt
Date: Sun Jul 20 21:22:46 2008
New Revision: 4228
URL: http://svn.gnome.org/viewvc/banshee?rev=4228&view=rev

Log:
2008-07-20  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs: Prevent NRE when
	setting the Pixbuf of a Tile to null (BGO #542921).



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs

Modified: trunk/banshee/src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs	Sun Jul 20 21:22:46 2008
@@ -96,7 +96,11 @@
         
         public Gdk.Pixbuf Pixbuf {
             get { return image.Pixbuf; }
-            set { 
+            set {
+                if(value == null) {
+                    return;
+                }
+
                 if(value.Width <= pixbuf_size && value.Height <= pixbuf_size) {
                     image.Pixbuf = value;
                     return;



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