Prevent a null ref
parent
ecc77e3886
commit
8fb706716b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue