aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 6850312..fa1fd89 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -538,7 +538,13 @@ namespace OpenSim.Region.Framework.Scenes
538 538
539 public void AdjustKnownSeeds() 539 public void AdjustKnownSeeds()
540 { 540 {
541 Dictionary<ulong, string> seeds = Scene.CapsModule.GetChildrenSeeds(UUID); 541 Dictionary<ulong, string> seeds;
542
543 if (Scene.CapsModule != null)
544 seeds = Scene.CapsModule.GetChildrenSeeds(UUID);
545 else
546 seeds = new Dictionary<ulong, string>();
547
542 List<ulong> old = new List<ulong>(); 548 List<ulong> old = new List<ulong>();
543 foreach (ulong handle in seeds.Keys) 549 foreach (ulong handle in seeds.Keys)
544 { 550 {
@@ -552,7 +558,10 @@ namespace OpenSim.Region.Framework.Scenes
552 } 558 }
553 } 559 }
554 DropOldNeighbours(old); 560 DropOldNeighbours(old);
555 Scene.CapsModule.SetChildrenSeed(UUID, seeds); 561
562 if (Scene.CapsModule != null)
563 Scene.CapsModule.SetChildrenSeed(UUID, seeds);
564
556 KnownRegions = seeds; 565 KnownRegions = seeds;
557 //m_log.Debug(" ++++++++++AFTER+++++++++++++ "); 566 //m_log.Debug(" ++++++++++AFTER+++++++++++++ ");
558 //DumpKnownRegions(); 567 //DumpKnownRegions();