mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Added a "if(entity != null)" before the call to
UpdateEntityMovement() to try to preclude the occaisional System.NullReferenceException in scene.
This commit is contained in:
@@ -174,7 +174,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
foreach (EntityBase entity in moveEntities)
|
||||
{
|
||||
entity.UpdateMovement();
|
||||
if(entity != null)entity.UpdateMovement();
|
||||
//cfk. This throws occaisional exceptions on a heavily used region
|
||||
//and I added this null check to try to preclude the exception.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user