diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Freeze/EvictorI.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/Freeze/EvictorI.cpp b/cpp/src/Freeze/EvictorI.cpp index 6ac3919a6f7..333ea527611 100644 --- a/cpp/src/Freeze/EvictorI.cpp +++ b/cpp/src/Freeze/EvictorI.cpp @@ -471,6 +471,11 @@ Freeze::EvictorIteratorI::hasNext() Ice::Identity Freeze::EvictorIteratorI::next() { + if (_curr == _end) + { + throw Freeze::NoSuchElementException(__FILE__, __LINE__); + } + Ice::Identity ident = _curr->first; ++_curr; return ident; |