[hyena] [ListView] Avoid NRE if ColumnController is null
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] [ListView] Avoid NRE if ColumnController is null
- Date: Wed, 13 Oct 2010 20:30:59 +0000 (UTC)
commit cdf210fd71de69003c356c56c2259d23501c3226
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Oct 13 15:11:34 2010 -0500
[ListView] Avoid NRE if ColumnController is null
.../Hyena.Data.Gui/ListView/ListView_Model.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Model.cs b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Model.cs
index c342f71..aa384a6 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Model.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Model.cs
@@ -66,7 +66,7 @@ namespace Hyena.Data.Gui
}
ISortable sortable = model as ISortable;
- if (sortable != null) {
+ if (sortable != null && ColumnController != null) {
ISortableColumn sort_column = ColumnController.SortColumn ?? ColumnController.DefaultSortColumn;
if (sort_column != null) {
sortable.Sort (sort_column);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]