summaryrefslogtreecommitdiff
path: root/indra/newview/llattachmentsmgr.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-11-13 11:57:14 -0500
committerOz Linden <oz@lindenlab.com>2012-11-13 11:57:14 -0500
commitbe210914f4e9081f021cc1ad3b671765aba79b61 (patch)
tree006e4ec827b8c1b3cf6042c08e12aadf48f43943 /indra/newview/llattachmentsmgr.cpp
parent7e779a29c142feaa34a30dff39b72d0ae7c0fdc3 (diff)
parentd8f081cf1b18ddb5f0412b21f4d36bfce6abae19 (diff)
merge changes for DRTVWR-238
Diffstat (limited to 'indra/newview/llattachmentsmgr.cpp')
-rw-r--r--indra/newview/llattachmentsmgr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llattachmentsmgr.cpp b/indra/newview/llattachmentsmgr.cpp
index c9543988a6..ea0b8f00a4 100644
--- a/indra/newview/llattachmentsmgr.cpp
+++ b/indra/newview/llattachmentsmgr.cpp
@@ -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)
{