Fixed exception upon shutting down in plain ODE.

09:49:57 - [SHUTDOWN]: Ignoring failure during shutdown - System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenSim.Region.PhysicsModule.ODE.OdeScene.Dispose() in f:\dev\opensim-core\OpenSim\Region\PhysicsModules\Ode\OdeScene.cs:line 4062
avinationmerge
Diva Canto 2015-10-14 09:56:23 -07:00
parent 8d7fa62088
commit 45b8e6c1a7
1 changed files with 5 additions and 2 deletions

View File

@ -4059,8 +4059,11 @@ namespace OpenSim.Region.PhysicsModule.ODE
{
_worldInitialized = false;
m_rayCastManager.Dispose();
m_rayCastManager = null;
if (m_rayCastManager != null)
{
m_rayCastManager.Dispose();
m_rayCastManager = null;
}
lock (OdeLock)
{