[longomatch/fakelive] Allow setting projects with null File object
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/fakelive] Allow setting projects with null File object
- Date: Mon, 15 Mar 2010 21:44:56 +0000 (UTC)
commit 9b6973c34f1188f686e437eeb67a64e7da7a7c89
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]