[longomatch/fakelive: 20/24] Allow projects with NULL MediaFile.



commit f0341292426471dafe52ae7e5f007a10a5b1a857
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]