This commit is contained in:
Felix Krause 2016-07-07 17:45:23 +02:00
parent b41ab142d5
commit 9054bf7630
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@ proc representChild*[T](value: seq[T], ts: TagStyle, c: SerializationContext):
proc representChild*[O](value: ref O, ts: TagStyle, c: SerializationContext):
RawYamlStream =
if value == nil:
if isNil(value):
result = iterator(): YamlStreamEvent =
yield scalarEvent("~", yTagNull)
elif c.style == asNone: result = representChild(value[], ts, c)