Prevent a null ref if a notecard is not found
parent
489758f68a
commit
6a8fe8a84e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue