From a02a3697da80da116162bed413613afd51710d2b Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Sat, 30 Oct 2010 05:20:49 +0000 Subject: [PATCH] LIBOMV-879: Fixed deserialization of nested arrays git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3463 52acb1d6-8a22-11de-b505-999d5b087335 --- OpenMetaverse.StructuredData/JSON/JsonMapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenMetaverse.StructuredData/JSON/JsonMapper.cs b/OpenMetaverse.StructuredData/JSON/JsonMapper.cs index 263417e4..4b6bd08e 100644 --- a/OpenMetaverse.StructuredData/JSON/JsonMapper.cs +++ b/OpenMetaverse.StructuredData/JSON/JsonMapper.cs @@ -496,7 +496,7 @@ namespace LitJson while (true) { IJsonWrapper item = ReadValue (factory, reader); - if (reader.Token == JsonToken.ArrayEnd) + if (item == null && reader.Token == JsonToken.ArrayEnd) break; ((IList) instance).Add (item);