1
0
mirror of https://github.com/zedeus/nitter synced 2024-11-15 22:46:52 +01:00

Fix parseText crash on nil node

This commit is contained in:
Zed 2019-10-18 01:00:35 +02:00
parent ff359a3fc8
commit e73963f9e9

View File

@ -43,6 +43,7 @@ proc isProtected*(profile: XmlNode): bool =
getHeader(profile).select(".Icon.Icon--protected") != nil
proc parseText*(text: XmlNode; skipLink=""): string =
if text == nil: return
for el in text:
case el.kind
of xnText: