[longomatch] Don't try to set sections is we set a null project



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]