[longomatch] Don't try to set sections is we set a null project
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [longomatch] Don't try to set sections is we set a null project
- Date: Tue, 20 Oct 2009 14:03:23 +0000 (UTC)
commit e5acd3b371c8719d8fd1a15950022aa5dd3df08b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Oct 20 13:01:14 2009 +0200
Don't try to set sections is we set a null project
LongoMatch/Gui/Component/ProjectTemplateWidget.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectTemplateWidget.cs b/LongoMatch/Gui/Component/ProjectTemplateWidget.cs
index da48542..10e666e 100644
--- a/LongoMatch/Gui/Component/ProjectTemplateWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectTemplateWidget.cs
@@ -48,7 +48,8 @@ namespace LongoMatch.Gui.Component
public void SetProject(Project project){
this.project = project;
- Sections=project.Sections;
+ if (project != null)
+ Sections=project.Sections;
}
public Sections Sections{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]