diff --git a/src/N_m3u8DL-RE.Parser/Mp4/MP4TtmlUtil.cs b/src/N_m3u8DL-RE.Parser/Mp4/MP4TtmlUtil.cs index b433da3..8edc581 100644 --- a/src/N_m3u8DL-RE.Parser/Mp4/MP4TtmlUtil.cs +++ b/src/N_m3u8DL-RE.Parser/Mp4/MP4TtmlUtil.cs @@ -226,6 +226,9 @@ namespace Mp4SubtitleParser continue; var _div = bodyNode.SelectSingleNode("ns:div", nsMgr); + if (_div == null) + continue; + //Parse

label foreach (XmlElement _p in _div!.SelectNodes("ns:p", nsMgr)!) {