tablesmit / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 1 forks source link

Serialization of List<byte[]> with null element fails. #411

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please include an e-mail address if this might need a dialogue!
==============

hhblaze@gmail.com 

What steps will reproduce the problem?
List<byte[]> bt=new List<byte[]>
{
  new byte[] {1,2,3},
  null,
  new byte[] {4,5,6}
}

Serialization of such list will bring to an error "Object reference is not 
set", if to remark "null", serialization will work:
List<byte[]> bt=new List<byte[]>
{
  new byte[] {1,2,3},
  //null,
  new byte[] {4,5,6}
}

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.0.0.68 For .NET 4.5 Windows

Please provide any additional information below.

Original issue reported on code.google.com by HHbl...@gmail.com on 23 Oct 2013 at 3:11