aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Mock
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-02-18 23:50:54 +0000
committerJustin Clark-Casey (justincc)2011-02-18 23:50:54 +0000
commit60fe3d48ee83f004861044c51537256c0c389478 (patch)
treed3ebc3be0f1cd5a22861eea533159a503c2426ef /OpenSim/Tests/Common/Mock
parentIf GridService.GetNeighbours() could not find the region then log a warning r... (diff)
downloadopensim-SC_OLD-60fe3d48ee83f004861044c51537256c0c389478.zip
opensim-SC_OLD-60fe3d48ee83f004861044c51537256c0c389478.tar.gz
opensim-SC_OLD-60fe3d48ee83f004861044c51537256c0c389478.tar.bz2
opensim-SC_OLD-60fe3d48ee83f004861044c51537256c0c389478.tar.xz
Put some CapabilitiesModule null checks in Scene
Stop tests setting up a capabilities module by default
Diffstat (limited to 'OpenSim/Tests/Common/Mock')
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index dc0d4de..ebe0a72 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -560,8 +560,11 @@ namespace OpenSim.Tests.Common.Mock
560 agentData.lastname = m_lastName; 560 agentData.lastname = m_lastName;
561 561
562 ICapabilitiesModule capsModule = m_scene.RequestModuleInterface<ICapabilitiesModule>(); 562 ICapabilitiesModule capsModule = m_scene.RequestModuleInterface<ICapabilitiesModule>();
563 agentData.CapsPath = capsModule.GetCapsPath(m_agentId); 563 if (capsModule != null)
564 agentData.ChildrenCapSeeds = new Dictionary<ulong, string>(capsModule.GetChildrenSeeds(m_agentId)); 564 {
565 agentData.CapsPath = capsModule.GetCapsPath(m_agentId);
566 agentData.ChildrenCapSeeds = new Dictionary<ulong, string>(capsModule.GetChildrenSeeds(m_agentId));
567 }
565 568
566 return agentData; 569 return agentData;
567 } 570 }