Fix case where the string member of a LSL_String in a list is null

avinationmerge
root 2013-03-16 01:47:26 +01:00
parent 9ffa08ea6b
commit 1dcdea6ac4
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
else if (o is LSL_Types.LSLFloat)
size += 8;
else if (o is LSL_Types.LSLString)
size += ((LSL_Types.LSLString)o).m_string.Length;
size += ((LSL_Types.LSLString)o).m_string == null ? 0 : ((LSL_Types.LSLString)o).m_string.Length;
else if (o is LSL_Types.key)
size += ((LSL_Types.key)o).value.Length;
else if (o is LSL_Types.Vector3)