Crash fix when trying to open a group profile while being disconnected
parent
8b743a2522
commit
aa015a0b90
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue