summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Lorentz <bertrand.lorentz@gmail.com>2013-04-14 22:47:48 +0200
committerBertrand Lorentz <bertrand.lorentz@gmail.com>2013-04-14 22:47:48 +0200
commit24beb450607a88d7ce5ce27cc2664702588f8d91 (patch)
treee66ef681824b28cee0e30eafb51605a057580427
parent60cf86c89694c40ddc0a2d435c76b6cec35ee4cc (diff)
StatisticsPage: Fix crash when no tracks are selected (bgo#679769)
-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) => {