Add materials store null check into UuidGatherer code.

cpu-performance
Justin Clark-Casey (justincc) 2013-06-28 23:57:41 +01:00
parent eed15703ed
commit 371085546d
1 changed files with 4 additions and 0 deletions

View File

@ -232,6 +232,10 @@ namespace OpenSim.Region.Framework.Scenes
if (part.DynAttrs.ContainsStore("OpenSim", "Materials"))
{
OSDMap materialsStore = part.DynAttrs.GetStore("OpenSim", "Materials");
if (materialsStore == null)
return;
materialsStore.TryGetValue("Materials", out osdMaterials);
}