aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2016-07-30 21:02:08 +0100
committerUbitUmarov2016-07-30 21:02:08 +0100
commita63aef978a28d0c9f93d0de9ee1a055a1dfbb4de (patch)
treeb5df1181fdb5aae6bdb2c7958bd016f99bb1f10e
parentMerge branch 'master' into httptests (diff)
parent fix NULL references added in recente changes in standalone mode (diff)
downloadopensim-SC-a63aef978a28d0c9f93d0de9ee1a055a1dfbb4de.zip
opensim-SC-a63aef978a28d0c9f93d0de9ee1a055a1dfbb4de.tar.gz
opensim-SC-a63aef978a28d0c9f93d0de9ee1a055a1dfbb4de.tar.bz2
opensim-SC-a63aef978a28d0c9f93d0de9ee1a055a1dfbb4de.tar.xz
Merge branch 'master' into httptests
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs11
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
2 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
index 363adde..21f7567 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs
@@ -127,7 +127,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
127 127
128 public void PostInitialise() 128 public void PostInitialise()
129 { 129 {
130 ((ISharedRegionModule)m_LocalGridService).PostInitialise(); 130 if (m_Enabled)
131 ((ISharedRegionModule)m_LocalGridService).PostInitialise();
131 } 132 }
132 133
133 public void Close() 134 public void Close()
@@ -137,14 +138,16 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
137 public void AddRegion(Scene scene) 138 public void AddRegion(Scene scene)
138 { 139 {
139 if (m_Enabled) 140 if (m_Enabled)
141 {
140 scene.RegisterModuleInterface<IGridService>(this); 142 scene.RegisterModuleInterface<IGridService>(this);
141 143 ((ISharedRegionModule)m_LocalGridService).AddRegion(scene);
142 ((ISharedRegionModule)m_LocalGridService).AddRegion(scene); 144 }
143 } 145 }
144 146
145 public void RemoveRegion(Scene scene) 147 public void RemoveRegion(Scene scene)
146 { 148 {
147 ((ISharedRegionModule)m_LocalGridService).RemoveRegion(scene); 149 if (m_Enabled)
150 ((ISharedRegionModule)m_LocalGridService).RemoveRegion(scene);
148 } 151 }
149 152
150 public void RegionLoaded(Scene scene) 153 public void RegionLoaded(Scene scene)
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index c592385..e985903 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -4671,9 +4671,10 @@ namespace OpenSim.Region.Framework.Scenes
4671 ControllingClient.ActiveGroupName = cAgent.ActiveGroupName; 4671 ControllingClient.ActiveGroupName = cAgent.ActiveGroupName;
4672 ControllingClient.ActiveGroupPowers = 0; 4672 ControllingClient.ActiveGroupPowers = 0;
4673 Grouptitle = cAgent.ActiveGroupTitle; 4673 Grouptitle = cAgent.ActiveGroupTitle;
4674 int ngroups = cAgent.Groups.Length; 4674
4675 if(ngroups > 0) 4675 if(cAgent.Groups != null && cAgent.Groups.Length > 0)
4676 { 4676 {
4677 int ngroups = cAgent.Groups.Length;
4677 Dictionary<UUID, ulong> gpowers = new Dictionary<UUID, ulong>(ngroups); 4678 Dictionary<UUID, ulong> gpowers = new Dictionary<UUID, ulong>(ngroups);
4678 for(int i = 0 ; i < ngroups; i++) 4679 for(int i = 0 ; i < ngroups; i++)
4679 { 4680 {