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

iar_mods
Justin Clark-Casey (justincc) 2011-12-03 00:30:13 +00:00
parent 5ba8ca5662
commit 8185ce8b4a
1 changed files with 3 additions and 1 deletions

View File

@ -3195,7 +3195,9 @@ namespace OpenSim.Region.Framework.Scenes
} }
catch { } 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) if (cAgent.AttachmentObjects != null && cAgent.AttachmentObjects.Count > 0)
{ {