Skip to content
Snippets Groups Projects
Commit d95cc171 authored by Vadim ProductEngine's avatar Vadim ProductEngine
Browse files

STORM-1352 WIP Issue a warning if a NULL chat toast is encountered.

parent 6fa808db
No related branches found
No related tags found
No related merge requests found
...@@ -401,7 +401,11 @@ void LLNearbyChatScreenChannel::showToastsBottom() ...@@ -401,7 +401,11 @@ void LLNearbyChatScreenChannel::showToastsBottom()
for(toast_vec_t::iterator it = m_active_toasts.begin(); it != m_active_toasts.end(); ++it) for(toast_vec_t::iterator it = m_active_toasts.begin(); it != m_active_toasts.end(); ++it)
{ {
LLToast* toast = it->get(); LLToast* toast = it->get();
if (!toast) continue; if (!toast)
{
llwarns << "NULL found in the active chat toasts list!" << llendl;
continue;
}
S32 toast_top = bottom + toast->getRect().getHeight() + margin; S32 toast_top = bottom + toast->getRect().getHeight() + margin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment