[longomatch] Allow projects with NULL MediaFile.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Allow projects with NULL MediaFile.
- Date: Thu, 25 Mar 2010 20:47:08 +0000 (UTC)
commit c2594bba88ce12732ea75eb4fc4b3ff8f7e15502
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Mar 3 21:38:30 2010 +0100
Allow projects with NULL MediaFile.
LongoMatch/DB/Project.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/DB/Project.cs b/LongoMatch/DB/Project.cs
index 5fe97be..56d5727 100644
--- a/LongoMatch/DB/Project.cs
+++ b/LongoMatch/DB/Project.cs
@@ -138,7 +138,7 @@ namespace LongoMatch.DB
}
this.tagsTemplate = new TagsTemplate();
- this.Title = System.IO.Path.GetFileNameWithoutExtension(this.file.FilePath);
+ this.Title = file == null ? "" : System.IO.Path.GetFileNameWithoutExtension(this.file.FilePath);
}
#endregion
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]