THRIFT-2331 Missing call to ReadStructBegin() in TApplicationException.Read()
authorJens Geyer <jensg@apache.org>
Thu, 23 Jan 2014 18:16:52 +0000 (19:16 +0100)
committerJens Geyer <jensg@apache.org>
Thu, 23 Jan 2014 18:16:52 +0000 (19:16 +0100)
Patch: Jens Geyer

lib/delphi/src/Thrift.pas

index f4b47ed..65f23ab 100644 (file)
@@ -107,9 +107,11 @@ var
   field : IField;
   msg : string;
   typ : TExceptionType;
+  struc : IStruct;
 begin
   msg := '';
   typ := TExceptionType.Unknown;
+  struc := iprot.ReadStructBegin;
   while ( True ) do
   begin
     field := iprot.ReadFieldBegin;