mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
avoid null ref
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user