summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-05-02 13:16:00 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-05-02 13:16:00 +0000
commiteab75d3643f71435fda85847a32f50c45ebc136b (patch)
tree4e816ed5e118cd06425f02df0c57ca12c3639d99 /cpp
parentAdded Freeze::EvictorIterator. (diff)
downloadice-eab75d3643f71435fda85847a32f50c45ebc136b.tar.bz2
ice-eab75d3643f71435fda85847a32f50c45ebc136b.tar.xz
ice-eab75d3643f71435fda85847a32f50c45ebc136b.zip
Update.
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Freeze/EvictorI.cpp5
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;