[longomatch] Allow setting projects with null File object



commit a93be23d335ef4a9c78fdce13175e061c3b07e6f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Mar 7 17:43:18 2010 +0100

    Allow setting projects with null File object

 LongoMatch/Gui/Component/ProjectDetailsWidget.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index 083d887..b64c693 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -222,7 +222,7 @@ namespace LongoMatch.Gui.Component
 		public void SetProject(Project project) {
 			this.project = project;
 			mFile = project.File;
-			Filename = mFile.FilePath;
+			Filename = mFile != null ? mFile.FilePath : "";
 			LocalName = project.LocalName;
 			VisitorName = project.VisitorName;
 			LocalGoals = project.LocalGoals;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]