banshee r4119 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Collection.Gui
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4119 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Collection.Gui
- Date: Thu, 5 Jun 2008 03:58:04 +0000 (UTC)
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]