fix NULL references added in recente changes in standalone mode

This commit is contained in:
UbitUmarov
2016-07-30 20:56:19 +01:00
parent e62f8fd09e
commit 9a4afa753b
2 changed files with 10 additions and 6 deletions

View File

@@ -4671,9 +4671,10 @@ namespace OpenSim.Region.Framework.Scenes
ControllingClient.ActiveGroupName = cAgent.ActiveGroupName;
ControllingClient.ActiveGroupPowers = 0;
Grouptitle = cAgent.ActiveGroupTitle;
int ngroups = cAgent.Groups.Length;
if(ngroups > 0)
if(cAgent.Groups != null && cAgent.Groups.Length > 0)
{
int ngroups = cAgent.Groups.Length;
Dictionary<UUID, ulong> gpowers = new Dictionary<UUID, ulong>(ngroups);
for(int i = 0 ; i < ngroups; i++)
{