summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llmenugl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp
index c172a2b714..171269e30d 100644
--- a/indra/llui/llmenugl.cpp
+++ b/indra/llui/llmenugl.cpp
@@ -1883,7 +1883,8 @@ void LLMenuGL::scrollItemsDown()
}
}
- if ((*next_item_iter)->getVisible())
+ if (next_item_iter != mItems.end() &&
+ (*next_item_iter)->getVisible())
{
mFirstVisibleItem = *next_item_iter;
}