X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Json%2FSystem.Json%2FJsonValue.cs;h=1d16b88e3f40407f1994efc04735c38bc269fada;hb=f79fec62c57dc3d59807f06ac14c02690bb942f1;hp=4c6dc5eca7eb9bef29b186d0fb17ea5012777e8b;hpb=4a7c594eb1c6e9aaf08a887908a33cc289bfe882;p=mono.git diff --git a/mcs/class/System.Json/System.Json/JsonValue.cs b/mcs/class/System.Json/System.Json/JsonValue.cs index 4c6dc5eca7e..1d16b88e3f4 100644 --- a/mcs/class/System.Json/System.Json/JsonValue.cs +++ b/mcs/class/System.Json/System.Json/JsonValue.cs @@ -162,7 +162,10 @@ namespace System.Json foreach (JsonValue v in ((JsonArray) this)) { if (following) w.Write (", "); - v.SaveInternal (w); + if (v != null) + v.SaveInternal (w); + else + w.Write ("null"); following = true; } w.Write (']');