Fix parseText crash on nil node
This commit is contained in:
parent
ff359a3fc8
commit
e73963f9e9
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ proc isProtected*(profile: XmlNode): bool =
|
||||||
getHeader(profile).select(".Icon.Icon--protected") != nil
|
getHeader(profile).select(".Icon.Icon--protected") != nil
|
||||||
|
|
||||||
proc parseText*(text: XmlNode; skipLink=""): string =
|
proc parseText*(text: XmlNode; skipLink=""): string =
|
||||||
|
if text == nil: return
|
||||||
for el in text:
|
for el in text:
|
||||||
case el.kind
|
case el.kind
|
||||||
of xnText:
|
of xnText:
|
||||||
|
|
Loading…
Reference in a new issue