[banshee] MeeGo: Fix NRE at start up (bgo#637333)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] MeeGo: Fix NRE at start up (bgo#637333)
- Date: Thu, 16 Dec 2010 01:40:36 +0000 (UTC)
commit 6254f3a4afac22acc58181a481d8e6c9e321eeda
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Thu Dec 16 09:40:26 2010 +0800
MeeGo: Fix NRE at start up (bgo#637333)
.../Banshee.Sources.Gui/SourceRowRenderer.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
index b8337ac..e08e8ed 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
@@ -49,8 +49,8 @@ namespace Banshee.Sources.Gui
return;
}
- var type = (SourceModel.EntryType) model.GetValue (iter, (int)SourceModel.Columns.Type);
- if (type != SourceModel.EntryType.Source) {
+ var type = model.GetValue (iter, (int)SourceModel.Columns.Type);
+ if (type == null || (SourceModel.EntryType) type != SourceModel.EntryType.Source) {
renderer.Visible = false;
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]