mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
Out of bounds getters for Results return undefined
This commit is contained in:
parent
b70e5432b7
commit
c8b6efb320
@ -43,7 +43,7 @@ Row Results::get(std::size_t row_ndx)
|
|||||||
{
|
{
|
||||||
verify_attached();
|
verify_attached();
|
||||||
if (row_ndx >= table_view.size()) {
|
if (row_ndx >= table_view.size()) {
|
||||||
throw std::range_error(std::string("Index ") + std::to_string(row_ndx) + " is outside of range 0..." +
|
throw std::out_of_range(std::string("Index ") + std::to_string(row_ndx) + " is outside of range 0..." +
|
||||||
std::to_string(table_view.size()) + ".");
|
std::to_string(table_view.size()) + ".");
|
||||||
}
|
}
|
||||||
return table_view.get(row_ndx);
|
return table_view.get(row_ndx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user