Skip to content
Snippets Groups Projects
Commit 60393abd authored by Nicky's avatar Nicky
Browse files

Crashfix: In LLAttachmentsMgr::onIdle make sure we've a valid region before dereferencing it.

parent 85025ffc
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,12 @@ void LLAttachmentsMgr::onIdle(void *) ...@@ -62,6 +62,12 @@ void LLAttachmentsMgr::onIdle(void *)
void LLAttachmentsMgr::onIdle() void LLAttachmentsMgr::onIdle()
{ {
// Make sure we got a region before trying anything else
if( !gAgent.getRegion() )
{
return;
}
S32 obj_count = mPendingAttachments.size(); S32 obj_count = mPendingAttachments.size();
if (obj_count == 0) if (obj_count == 0)
{ {
......
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