div为空跳过,不报错
This commit is contained in:
parent
408736d2db
commit
34ca046562
|
@ -226,6 +226,9 @@ namespace Mp4SubtitleParser
|
|||
continue;
|
||||
|
||||
var _div = bodyNode.SelectSingleNode("ns:div", nsMgr);
|
||||
if (_div == null)
|
||||
continue;
|
||||
|
||||
//Parse <p> label
|
||||
foreach (XmlElement _p in _div!.SelectNodes("ns:p", nsMgr)!)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue