THRIFT-1132. csharp: Deserialization error in TApplicationException C#
authorBryan Duxbury <bryanduxbury@apache.org>
Fri, 8 Apr 2011 18:31:52 +0000 (18:31 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Fri, 8 Apr 2011 18:31:52 +0000 (18:31 +0000)
Add in a missing ReadStructBegin call.

Patch: Wojciech Baćmaga

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1090392 13f79535-47bb-0310-9956-ffa450edef68

lib/csharp/src/TApplicationException.cs

index cc29f0a..57dd375 100644 (file)
@@ -52,6 +52,7 @@ namespace Thrift
                        string message = null;
                        ExceptionType type = ExceptionType.Unknown;
 
+                       iprot.ReadStructBegin();
                        while (true)
                        {
                                field = iprot.ReadFieldBegin();