From 7a6141e066008499e366f2380d291708086560ac Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Thu, 5 May 2016 14:08:58 -0700 Subject: [PATCH] fix for object link nullification --- src/object-store/src/object_accessor.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/object-store/src/object_accessor.hpp b/src/object-store/src/object_accessor.hpp index d79a2f3d..41757e5f 100644 --- a/src/object-store/src/object_accessor.hpp +++ b/src/object-store/src/object_accessor.hpp @@ -180,7 +180,12 @@ namespace realm { size_t column = property.table_column; if (property.is_nullable && Accessor::is_null(ctx, value)) { - m_row.set_null(column); + if (property.type == PropertyTypeObject) { + m_row.nullify_link(column); + } + else { + m_row.set_null(column); + } return; }