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

Nicky 2012-07-13 13:37:18 +02:00
parent 85025ffc7b
commit 60393abdad
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,12 @@ void LLAttachmentsMgr::onIdle(void *)
void LLAttachmentsMgr::onIdle()
{
// Make sure we got a region before trying anything else
if( !gAgent.getRegion() )
{
return;
}
S32 obj_count = mPendingAttachments.size();
if (obj_count == 0)
{