summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs
index 3ac3fefd0..6285e48fc 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/StatisticsPage.cs
@@ -101,7 +101,7 @@ namespace Banshee.Gui.TrackEditor
public void UpdateWrapWidth ()
{
- if (view.IsRealized) {
+ if (view.IsRealized && model != null) {
var width = GetValueWidth ();
model.Foreach ((TreeModel m, TreePath path, TreeIter iter) => {