From 869b39c451ca1ce2dca4e651d6eada0c5b213f06 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 22 Apr 2007 17:31:51 +0000 Subject: SimClient: Added Try/Catch over block of code which is triggering an exception that should not be triggerable. (Duplicate key after dictionary is locked, checked for key, then added) [!?!?] AvatarUpdate: Added check for if the physics actor is null before attempting to access it. --- OpenSim.RegionServer/world/AvatarUpdate.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim.RegionServer/world') diff --git a/OpenSim.RegionServer/world/AvatarUpdate.cs b/OpenSim.RegionServer/world/AvatarUpdate.cs index 6c0ace7..34d032c 100644 --- a/OpenSim.RegionServer/world/AvatarUpdate.cs +++ b/OpenSim.RegionServer/world/AvatarUpdate.cs @@ -10,6 +10,12 @@ namespace OpenSim.world { public override void update() { + if (this._physActor == null) + { + //HACKHACK: Note to work out why this entity does not have a physics actor + // and prehaps create one. + return; + } libsecondlife.LLVector3 pos2 = new LLVector3(this._physActor.Position.X, this._physActor.Position.Y, this._physActor.Position.Z); if (this.updateflag) { -- cgit v1.1