bugfix for empty results, fix for realm.isValid

This commit is contained in:
Ari Lazier 2016-04-19 16:03:18 -07:00
parent 4d8d1d96e4
commit 75d8f5b759
1 changed files with 3 additions and 2 deletions

View File

@ -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"
);
}
}