FIRE-21323: Crash fix in changing LanguageIsPublic without connected region

meow-7.2.2
Ansariel 2017-06-27 20:49:42 +02:00
parent d3e89cdea3
commit f513e7b352
1 changed files with 8 additions and 2 deletions

View File

@ -3283,7 +3283,10 @@ bool LLAgent::requestPostCapability(const std::string &capName, LLSD &postData,
{
std::string url;
url = getRegion()->getCapability(capName);
// <FS:Ansariel> FIRE-21323: Crashfix
//url = getRegion()->getCapability(capName);
url = getRegion() ? getRegion()->getCapability(capName) : "";
// </FS:Ansariel>
if (url.empty())
{
@ -3299,7 +3302,10 @@ bool LLAgent::requestGetCapability(const std::string &capName, httpCallback_t cb
{
std::string url;
url = getRegion()->getCapability(capName);
// <FS:Ansariel> FIRE-21323: Crashfix
//url = getRegion()->getCapability(capName);
url = getRegion() ? getRegion()->getCapability(capName) : "";
// </FS:Ansariel>
if (url.empty())
{