discomarathon / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Can't seriallize/deseriallize a List<Object> with null element; #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
   List<Object> d = new ArrayList<Object>();
   d.add(null);
   JsonElement je = gson.toJsonTree(d);

What is the expected output? What do you see instead?
   create json like "[null]"
actually
   throw a null pointer exception

What version of the product are you using? On what operating system?
   1.3

Please provide any additional information below.

Original issue reported on code.google.com by yufanyu...@gmail.com on 8 Apr 2009 at 9:24

GoogleCodeExporter commented 9 years ago
Fixed in r460.

Original comment by joel.leitch@gmail.com on 29 Sep 2009 at 8:35

GoogleCodeExporter commented 9 years ago

Original comment by inder123 on 1 Oct 2009 at 5:07