diff options
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index bd05c92..e5458d4 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |||
@@ -1109,12 +1109,13 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1109 | try | 1109 | try |
1110 | { | 1110 | { |
1111 | vec = d.BodyGetPosition(Body); | 1111 | vec = d.BodyGetPosition(Body); |
1112 | //throw new NullReferenceException("foo!"); | 1112 | |
1113 | } | 1113 | } |
1114 | catch (NullReferenceException) | 1114 | catch (NullReferenceException) |
1115 | { | 1115 | { |
1116 | vec = new d.Vector3(Position.X, Position.Y, Position.Z); | 1116 | vec = new d.Vector3(_position.X, _position.Y, _position.Z); |
1117 | base.RaiseOutOfBounds(_position); | 1117 | base.RaiseOutOfBounds(_position); // Tells ScenePresence that there's a problem! |
1118 | m_log.WarnFormat("[ODEPLUGIN]: Avatar Null reference for Avatar: {0}", m_name); | ||
1118 | } | 1119 | } |
1119 | 1120 | ||
1120 | 1121 | ||