Incorrect deserialization of array with null values
Closed this issue · 1 comments
GoogleCodeExporter commented
Please include an e-mail address if this might need a dialogue!
==============
What steps will reproduce the problem?
var arr = new[] {"aaa", null, "bbb"};
var arr2 = Serializer.DeepClone(arr); // {"aaa", "bbb"}
What is the expected output? What do you see instead?
Null values in array should be serialized correctly, now they are skipped.
What version of the product are you using? On what operating system?
protobuf-net r282.zip
Windows 7 x64
Please provide any additional information below.
Original issue reported on code.google.com by mace...@gmail.com
on 3 May 2011 at 3:07
GoogleCodeExporter commented
The protobuf spec (outside my control) has no mechanism for null. "v2" now
throws an exception in this scenario, which is my preferred behaviour.
Original comment by marc.gravell
on 13 Jun 2011 at 8:39
- Changed state: Fixed