/[xmltv_parser]/branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs
ViewVC logotype

Diff of /branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs	2015/07/29 19:09:14	282
+++ branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs	2018/12/14 19:38:41	298
@@ -57,8 +57,12 @@
         private IPropertyDictionary _MetaData;
         public IPropertyDictionary MetaData { get { return _MetaData; } private set { _MetaData = value; } }
         public List<IExtraMetaData> GetExtraMetaData()
-        {
-            return (List<IExtraMetaData>)this.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData];
+        {
+		if (this.MetaData.ContainsProperty (XMLTVConstants.Programs.ProgramExtraMetaData)) {
+			return (List<IExtraMetaData>)this.MetaData [XMLTVConstants.Programs.ProgramExtraMetaData];
+		} else {
+			return new List<IExtraMetaData>();
+		}
         }
         #endregion
 

 

  ViewVC Help
Powered by ViewVC 1.1.22