Do a cagent.Anims != null check in SP.CopyFrom()

This commit is contained in:
Justin Clark-Casey (justincc)
2011-12-03 00:30:13 +00:00
parent 5ba8ca5662
commit 8185ce8b4a

View File

@@ -3195,7 +3195,9 @@ namespace OpenSim.Region.Framework.Scenes
}
catch { }
Animator.Animations.FromArray(cAgent.Anims);
// FIXME: Why is this null check necessary? Where are the cases where we get a null Anims object?
if (cAgent.Anims != null)
Animator.Animations.FromArray(cAgent.Anims);
if (cAgent.AttachmentObjects != null && cAgent.AttachmentObjects.Count > 0)
{