Added a "if(entity != null)" before the call to

UpdateEntityMovement() to try to preclude the 
occaisional System.NullReferenceException in scene.
0.6.0-stable
Charles Krinke 2008-06-08 17:36:41 +00:00
parent de11c09794
commit aca872499f
1 changed files with 3 additions and 1 deletions

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