* Caught 2 dictionary exceptions that were unhandled

From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
0.6.3-post-fixes
Sean Dague 2009-01-22 13:59:54 +00:00
parent 9ebba37a7c
commit 9704196bbf
2 changed files with 8 additions and 1 deletions

View File

@ -175,9 +175,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.Capabilities
public string GetChildSeed(UUID agentID, ulong handle)
{
Dictionary<ulong, string> seeds;
string returnval;
if (childrenSeeds.TryGetValue(agentID, out seeds))
{
return seeds[handle];
if (seeds.TryGetValue(handle, out returnval))
return returnval;
}
return null;
}

View File

@ -2452,6 +2452,11 @@ namespace OpenSim.Region.Environment.Scenes
//Scene.DumpChildrenSeeds(UUID);
//DumpKnownRegions();
if (!m_knownChildRegions.ContainsKey(neighbourRegion.RegionHandle))
{
m_log.ErrorFormat("[SCENE PRESENCE]: No CAPS information for region handle {0}, exiting CrossToNewRegion.",
neighbourRegion.RegionHandle);
}
// TODO Should construct this behind a method
string capsPath =
"http://" + neighbourRegion.ExternalHostName + ":" + neighbourRegion.HttpPort