and yet another check for null returned from DynAttrs.GetStore()

cpu-performance
dahlia 2013-06-27 18:01:17 -07:00
parent c1b8f83dd4
commit d47fc48b32
1 changed files with 4 additions and 0 deletions

View File

@ -197,6 +197,10 @@ namespace OpenSim.Region.OptionalModules.MaterialsDemoModule
if (part.DynAttrs.ContainsStore("OpenSim", "Materials"))
{
OSDMap materialsStore = part.DynAttrs.GetStore("OpenSim", "Materials");
if (materialsStore == null)
return;
materialsStore.TryGetValue("Materials", out OSMaterials);
}