mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-21 22:09:23 +02:00
* Check that currentindex is assigned
This commit is contained in:
parent
ee110fbed3
commit
7f010191f5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user