summaryrefslogtreecommitdiff
path: root/indra/newview/llexperienceassociationresponder.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2016-01-15 16:42:39 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2016-01-15 16:42:39 -0500
commit3612d7d14b1e481402bb3d7cbfb552cd19a3fc0a (patch)
treef3dabe49f7953e24de207a6a0939da5539d5acca /indra/newview/llexperienceassociationresponder.cpp
parenta6c8de97bbb2609d24e212672b192650aed91e1e (diff)
parent5a5c023e291990a463b1a91846ce82c70da8daab (diff)
merge
Diffstat (limited to 'indra/newview/llexperienceassociationresponder.cpp')
-rw-r--r--indra/newview/llexperienceassociationresponder.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/indra/newview/llexperienceassociationresponder.cpp b/indra/newview/llexperienceassociationresponder.cpp
index 7f2363aadc..f62ca7d75f 100644
--- a/indra/newview/llexperienceassociationresponder.cpp
+++ b/indra/newview/llexperienceassociationresponder.cpp
@@ -51,10 +51,18 @@ void ExperienceAssociationResponder::fetchAssociatedExperience(LLSD& request, ca
LLViewerObject* object = gObjectList.findObject(request["object-id"]);
if (!object)
{
- LL_WARNS() << "Failed to find object with ID " << request["object-id"] << " in fetchAssociatedExperience" << LL_ENDL;
- return;
+ LL_DEBUGS() << "Object with ID " << request["object-id"] << " not found via gObjectList.findObject() in fetchAssociatedExperience" << LL_ENDL;
+ LL_DEBUGS() << "Using gAgent.getRegion() instead of object->getRegion()" << LL_ENDL;
+ }
+ LLViewerRegion* region = NULL;
+ if (object)
+ {
+ region = object->getRegion();
+ }
+ else
+ {
+ region = gAgent.getRegion();
}
- LLViewerRegion* region = object->getRegion();
if (region)
{
std::string lookup_url=region->getCapability("GetMetadata");
@@ -66,6 +74,10 @@ void ExperienceAssociationResponder::fetchAssociatedExperience(LLSD& request, ca
LLHTTPClient::post(lookup_url, request, new ExperienceAssociationResponder(callback));
}
}
+ else
+ {
+ LL_WARNS() << "Failed to lookup region in fetchAssociatedExperience. Fetch request not sent." << LL_ENDL;
+ }
}
void ExperienceAssociationResponder::httpFailure()