Skip to content

Commit

Permalink
Validated if DataSet is active before giving First
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Aug 26, 2019
1 parent 29db65c commit b98f536
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/DataSet.Serialize.JSON.Impl.pas
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ procedure TJSONSerialize.JSONArrayToDataSet(const AJSONArray: TJSONArray; const
else
JSONObjectToDataSet(LJSONValue as TJSONObject, ADataSet, False);
end;
ADataSet.First;
if ADataSet.Active then
ADataSet.First;
end;

procedure TJSONSerialize.Merge(const ADataSet: TDataSet);
Expand Down

0 comments on commit b98f536

Please sign in to comment.