aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Materials/MaterialsDemoModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/OptionalModules/Materials/MaterialsDemoModule.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Materials/MaterialsDemoModule.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Materials/MaterialsDemoModule.cs b/OpenSim/Region/OptionalModules/Materials/MaterialsDemoModule.cs
index be2d8da..34dc552 100644
--- a/OpenSim/Region/OptionalModules/Materials/MaterialsDemoModule.cs
+++ b/OpenSim/Region/OptionalModules/Materials/MaterialsDemoModule.cs
@@ -197,6 +197,10 @@ namespace OpenSim.Region.OptionalModules.MaterialsDemoModule
197 if (part.DynAttrs.ContainsStore("OpenSim", "Materials")) 197 if (part.DynAttrs.ContainsStore("OpenSim", "Materials"))
198 { 198 {
199 OSDMap materialsStore = part.DynAttrs.GetStore("OpenSim", "Materials"); 199 OSDMap materialsStore = part.DynAttrs.GetStore("OpenSim", "Materials");
200
201 if (materialsStore == null)
202 return;
203
200 materialsStore.TryGetValue("Materials", out OSMaterials); 204 materialsStore.TryGetValue("Materials", out OSMaterials);
201 } 205 }
202 206