diff options
author | Sean Dague | 2009-01-22 13:59:54 +0000 |
---|---|---|
committer | Sean Dague | 2009-01-22 13:59:54 +0000 |
commit | 9704196bbf54475bbf092e91cc6f7bdd8ed27f14 (patch) | |
tree | 5157dc2b66df709f114fb33d68cd1b9be3fa511f /OpenSim/Region/Environment/Modules/Agent/Capabilities/CapabilitiesModule.cs | |
parent | * discovered! darn! Removing I <3 OpenSimulator from firstname (diff) | |
download | opensim-SC-9704196bbf54475bbf092e91cc6f7bdd8ed27f14.zip opensim-SC-9704196bbf54475bbf092e91cc6f7bdd8ed27f14.tar.gz opensim-SC-9704196bbf54475bbf092e91cc6f7bdd8ed27f14.tar.bz2 opensim-SC-9704196bbf54475bbf092e91cc6f7bdd8ed27f14.tar.xz |
* Caught 2 dictionary exceptions that were unhandled
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Agent/Capabilities/CapabilitiesModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Agent/Capabilities/CapabilitiesModule.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Agent/Capabilities/CapabilitiesModule.cs b/OpenSim/Region/Environment/Modules/Agent/Capabilities/CapabilitiesModule.cs index 9fa6d7d..838851c 100644 --- a/OpenSim/Region/Environment/Modules/Agent/Capabilities/CapabilitiesModule.cs +++ b/OpenSim/Region/Environment/Modules/Agent/Capabilities/CapabilitiesModule.cs | |||
@@ -175,9 +175,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.Capabilities | |||
175 | public string GetChildSeed(UUID agentID, ulong handle) | 175 | public string GetChildSeed(UUID agentID, ulong handle) |
176 | { | 176 | { |
177 | Dictionary<ulong, string> seeds; | 177 | Dictionary<ulong, string> seeds; |
178 | string returnval; | ||
178 | if (childrenSeeds.TryGetValue(agentID, out seeds)) | 179 | if (childrenSeeds.TryGetValue(agentID, out seeds)) |
179 | { | 180 | { |
180 | return seeds[handle]; | 181 | if (seeds.TryGetValue(handle, out returnval)) |
182 | return returnval; | ||
181 | } | 183 | } |
182 | return null; | 184 | return null; |
183 | } | 185 | } |