mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 23:04:29 +00:00
bugfix for empty results, fix for realm.isValid
This commit is contained in:
parent
4d8d1d96e4
commit
75d8f5b759
@ -342,8 +342,9 @@ namespace realm {
|
|||||||
|
|
||||||
inline void Object::verify_attached() {
|
inline void Object::verify_attached() {
|
||||||
if (!m_row.is_attached()) {
|
if (!m_row.is_attached()) {
|
||||||
throw InvalidatedObjectException("Accessing object of type " + m_object_schema->name + " which has been deleted",
|
throw InvalidatedObjectException(m_object_schema->name,
|
||||||
m_object_schema->name);
|
"Accessing object of type " + m_object_schema->name + " which has been deleted"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user