diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-08-15 12:13:06 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-08-15 12:13:06 +0000 |
commit | 23204afafb060c5fca6b7e1d632af394e72eb234 (patch) | |
tree | f2cc957716885785b25532ca65c3393c4534279d /document | |
parent | 506ea9c1367748ddd4ff20203fc13211d635f5a6 (diff) |
Stop iterating field path when variable value is out of array boundary.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/fieldvalue/arrayfieldvalue.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/document/src/vespa/document/fieldvalue/arrayfieldvalue.cpp b/document/src/vespa/document/fieldvalue/arrayfieldvalue.cpp index 5ec4535ce68..8d928f7fb12 100644 --- a/document/src/vespa/document/fieldvalue/arrayfieldvalue.cpp +++ b/document/src/vespa/document/fieldvalue/arrayfieldvalue.cpp @@ -243,6 +243,8 @@ ArrayFieldValue::onIterateNested(PathRange nested, IteratorHandler & handler) co if (idx < (int)_array->size()) { return iterateSubset(idx, idx, "", nested.next(), handler); + } else { + return ModificationStatus::NOT_MODIFIED; } } else { return iterateSubset(0, static_cast<int>(_array->size()) - 1, |