From 7651d60d72d16179ab95a1e1bc8ac6c17379f08f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 19 Jan 2017 12:47:14 +0000 Subject: fix a null check --- OpenSim/Region/Framework/Scenes/Scene.Permissions.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs index b2801ea..e066c0a 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs @@ -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) { -- cgit v1.1