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:
Charles Krinke
2008-06-08 17:36:41 +00:00
parent de11c09794
commit aca872499f

View File

@@ -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.
}
}