avoid null ref

This commit is contained in:
UbitUmarov
2022-02-23 13:38:13 +00:00
parent b6874f50ff
commit 9a897683f4
3 changed files with 10 additions and 1 deletions

View File

@@ -5174,7 +5174,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
AssetBase lma = World.AssetService.Get(assetID.ToString());
if (lma == null)
if (lma == null || lma.Data == null || lma.Data.Length == 0)
return;
if (lma.Type != (sbyte)AssetType.Landmark)