ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs
(Generate patch)

Comparing branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs (file contents):
Revision 297 by william, Wed Jul 29 19:09:14 2015 UTC vs.
Revision 298 by william, Fri Dec 14 19:38:41 2018 UTC

--- branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs	2018/12/14 18:43:06	297
+++ branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs	2018/12/14 19:38:41	298
@@ -57,8 +57,12 @@ namespace libxmltv.Core
         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