Prevent a null ref

avinationmerge
Melanie Thielker 2010-05-27 20:08:48 +02:00
parent ac5373427f
commit ba49319c07
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ namespace OpenSim.Region.Framework.Scenes
while (m_pendingObjects != null && m_pendingObjects.Count > 0) while (m_pendingObjects != null && m_pendingObjects.Count > 0)
{ {
SceneObjectGroup g = m_pendingObjects.Dequeue(); SceneObjectGroup g = m_pendingObjects.Dequeue();
// Yes, this can really happen
if (g == null)
continue;
// This is where we should check for draw distance // This is where we should check for draw distance
// do culling and stuff. Problem with that is that until // do culling and stuff. Problem with that is that until