Change the order of actions to address a possible nullref

This commit is contained in:
Melanie
2010-10-08 18:40:13 +01:00
parent 1e66f79a4e
commit 5dcbbb726a

View File

@@ -179,11 +179,10 @@ namespace OpenSim.Region.Framework.Scenes
public void Reset()
{
if (m_pendingObjects != null)
lock (m_pendingObjects)
{
lock (m_pendingObjects)
if (m_pendingObjects != null)
{
m_pendingObjects.Clear();
m_pendingObjects = null;
}