mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 06:44:15 +08:00
Prevent a null ref if a notecard is not found
This commit is contained in:
@@ -9209,6 +9209,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
WithNotecard(assetID, delegate (UUID id, AssetBase a)
|
||||
{
|
||||
if (a == null)
|
||||
return;
|
||||
|
||||
if (a.Type != 7)
|
||||
return;
|
||||
|
||||
@@ -9283,6 +9286,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
WithNotecard(assetID, delegate (UUID id, AssetBase a)
|
||||
{
|
||||
if (a == null)
|
||||
return;
|
||||
|
||||
if (a.Type != 7)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user