From 75d8f5b759f02170678aa217737ec9859d27c642 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Tue, 19 Apr 2016 16:03:18 -0700 Subject: [PATCH] bugfix for empty results, fix for realm.isValid --- src/object_accessor.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/object_accessor.hpp b/src/object_accessor.hpp index c27d7a52..fc86a62c 100644 --- a/src/object_accessor.hpp +++ b/src/object_accessor.hpp @@ -342,8 +342,9 @@ namespace realm { inline void Object::verify_attached() { if (!m_row.is_attached()) { - throw InvalidatedObjectException("Accessing object of type " + m_object_schema->name + " which has been deleted", - m_object_schema->name); + throw InvalidatedObjectException(m_object_schema->name, + "Accessing object of type " + m_object_schema->name + " which has been deleted" + ); } }