Crash fix when trying to open a group profile while being disconnected

master
Ansariel 2016-02-14 17:11:26 +01:00
parent 8b743a2522
commit aa015a0b90
1 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,8 @@
#include "llpanelexperiences.h"
#include "llsd.h"
#include "llvoavatarself.h"
static LLPanelInjector<LLPanelGroupExperiences> t_panel_group_experiences("panel_group_experiences");
@ -101,6 +103,13 @@ void LLPanelGroupExperiences::activate()
return;
}
// <FS:Ansariel> Crash fix
if (!isAgentAvatarValid())
{
return;
}
// </FS:Ansariel>
// search for experiences owned by the current group
std::string url = gAgent.getRegion()->getCapability("GroupExperiences");
if (!url.empty())