You've already forked lazarus-ccr
json serializer: do not raise exception when a scope is not found, while reading.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4508 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -942,7 +942,8 @@ begin
|
|||||||
stk := StackTop();
|
stk := StackTop();
|
||||||
locNode := stk.FindNode(AScopeName);
|
locNode := stk.FindNode(AScopeName);
|
||||||
if not Assigned(locNode) then begin
|
if not Assigned(locNode) then begin
|
||||||
Error(SERR_ScopeNotFound,[AScopeName]);
|
Result := -1;
|
||||||
|
exit;
|
||||||
end;
|
end;
|
||||||
case locNode.JSONType() of
|
case locNode.JSONType() of
|
||||||
jtObject : PushStack(locNode,stObject);
|
jtObject : PushStack(locNode,stObject);
|
||||||
|
Reference in New Issue
Block a user