banshee r4083 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Collection.Gui



Author: gburt
Date: Tue Jun  3 15:17:41 2008
New Revision: 4083
URL: http://svn.gnome.org/viewvc/banshee?rev=4083&view=rev

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

	* src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellFileSize.cs:
	Avoid NRE, fix BGO #536148.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellFileSize.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellFileSize.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellFileSize.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellFileSize.cs	Tue Jun  3 15:17:41 2008
@@ -42,6 +42,9 @@
         
         protected override string Text {
             get {
+                if (BoundObject == null)
+                    return String.Empty;
+
                 long bytes = (long) BoundObject;
                 return bytes <= 0
                     ? String.Empty



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