fix a null check

httptests
UbitUmarov 2017-01-19 12:47:14 +00:00
parent 673bd37219
commit 7651d60d72
1 changed files with 3 additions and 2 deletions

View File

@ -455,10 +455,11 @@ namespace OpenSim.Region.Framework.Scenes
if(sog == null || client == null)
return false;
ScenePresence sp = client.SceneAgent as ScenePresence;
if(sp == null)
if(client.SceneAgent == null)
return false;
ScenePresence sp = client.SceneAgent as ScenePresence;
MoveObjectHandler handler = OnMoveObject;
if (handler != null)
{