Non-existent object getters shouldn't throw exceptions
This commit is contained in:
parent
ed193d8f5c
commit
ff9b73ec2f
|
@ -117,7 +117,7 @@ namespace realm {
|
||||||
{
|
{
|
||||||
const Property *prop = object_schema.property_for_name(prop_name);
|
const Property *prop = object_schema.property_for_name(prop_name);
|
||||||
if (!prop) {
|
if (!prop) {
|
||||||
throw std::runtime_error("Setting invalid property '" + prop_name + "' on object '" + object_schema.name + "'.");
|
throw std::runtime_error("Getting invalid property '" + prop_name + "' on object '" + object_schema.name + "'.");
|
||||||
}
|
}
|
||||||
return get_property_value_impl<ValueType>(ctx, *prop);
|
return get_property_value_impl<ValueType>(ctx, *prop);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue