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



Author: gburt
Date: Thu Jun  5 03:58:04 2008
New Revision: 4119
URL: http://svn.gnome.org/viewvc/banshee?rev=4119&view=rev

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

	* src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellPositiveInt.cs:
	Prevent NRE (BGO #536724).


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

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellPositiveInt.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellPositiveInt.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellPositiveInt.cs	Thu Jun  5 03:58:04 2008
@@ -40,6 +40,9 @@
         
         protected override string Text {
             get {
+                if (BoundObject == null)
+                    return String.Empty;
+
                 int val = (int) BoundObject;
                 return val > 0 ? val.ToString () : String.Empty;
             }



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