[longomatch] Allow projects with NULL MediaFile.



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]