From 9054bf763055b39fb0d840f44ca9e49477c0470d Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Thu, 7 Jul 2016 17:45:23 +0200 Subject: [PATCH] Fixes #19 --- private/serialization.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/serialization.nim b/private/serialization.nim index 2ea7eb3..3d47c08 100644 --- a/private/serialization.nim +++ b/private/serialization.nim @@ -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)