Fix Binary Format optional object read failing.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4268 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa
2015-08-13 15:14:26 +00:00
parent 4f741ca06d
commit 9a060b2d23

View File

@ -1459,11 +1459,12 @@ var
begin
stk := StackTop();
locNode := stk.Find(AScopeName);
if not Assigned(locNode) then begin
Error(SERR_ScopeNotFound,[AScopeName]);
if (locNode <> nil) then begin
PushStack(locNode,stObject);
Result := StackTop().GetItemCount();
end else begin
Result := -1;
end;
PushStack(locNode,stObject);
Result := StackTop().GetItemCount();
end;
function TBaseBinaryFormatter.BeginArrayRead(