mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
fix a null check
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user