Fix a possible NRE
parent
a0065ad616
commit
7e21ddeeff
|
@ -2340,11 +2340,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
string appearanceSerialized = LoadNotecard(notecard);
|
||||
|
||||
if (appearanceSerialized != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
OSDMap appearanceOsd = (OSDMap)OSDParser.DeserializeLLSDXml(appearanceSerialized);
|
||||
appearance = new AvatarAppearance();
|
||||
appearance.Unpack(appearanceOsd);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return UUID.Zero.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (appearance == null)
|
||||
|
|
Loading…
Reference in New Issue