LIBOMV-798: OSDParser.DeserializeJson() throws an exception on null values
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3273 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -25,6 +25,8 @@ namespace OpenMetaverse.StructuredData
|
||||
|
||||
public static OSD DeserializeJson(JsonData json)
|
||||
{
|
||||
if (json == null) return new OSD();
|
||||
|
||||
switch (json.GetJsonType())
|
||||
{
|
||||
case JsonType.Boolean:
|
||||
|
||||
Reference in New Issue
Block a user