diff options
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs | 3 | ||||
-rw-r--r-- | OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs index 4e60ca9..ceb7905 100644 --- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs | |||
@@ -88,8 +88,7 @@ namespace OpenSim.Tests.Common | |||
88 | if (type == InventoryType.Notecard) | 88 | if (type == InventoryType.Notecard) |
89 | asset = AssetHelpers.CreateAsset(scene, userId); | 89 | asset = AssetHelpers.CreateAsset(scene, userId); |
90 | else if (type == InventoryType.Object) | 90 | else if (type == InventoryType.Object) |
91 | asset | 91 | asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId)); |
92 | = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId)); | ||
93 | else | 92 | else |
94 | throw new Exception(string.Format("Inventory type {0} not supported", type)); | 93 | throw new Exception(string.Format("Inventory type {0} not supported", type)); |
95 | 94 | ||
diff --git a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs index 2ea36da..79bb9c2 100644 --- a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs +++ b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs | |||
@@ -163,6 +163,10 @@ namespace OpenSim.Data.Null | |||
163 | { | 163 | { |
164 | RegionSettings rs = null; | 164 | RegionSettings rs = null; |
165 | m_regionSettings.TryGetValue(regionUUID, out rs); | 165 | m_regionSettings.TryGetValue(regionUUID, out rs); |
166 | |||
167 | if (rs == null) | ||
168 | rs = new RegionSettings(); | ||
169 | |||
166 | return rs; | 170 | return rs; |
167 | } | 171 | } |
168 | 172 | ||