* Check that currentindex is assigned

This commit is contained in:
michael 2019-07-07 18:39:55 +00:00
parent ee110fbed3
commit 7f010191f5

View File

@ -1339,8 +1339,12 @@ begin
end;
function TBaseJSONDataSet.GetRecordCount: Integer;
begin
Result:=FCurrentIndex.Count;
if Assigned(FCurrentIndex) then
Result:=FCurrentIndex.Count
else
Result:=0;
end;
function TBaseJSONDataSet.GetRecordSize: Word;