* Fix AV in case there is no changelist (local dataset)

This commit is contained in:
michael 2018-02-10 20:49:48 +00:00
parent 8c3c8022c9
commit 53c1915185

View File

@ -3973,6 +3973,7 @@ begin
R:=AddToChangeList(usDeleted);
If Not TryDoing(@InternalDelete,OnDeleteError) then
begin
if Assigned(R) then
RemoveFromChangeList(R);
exit;
end;
@ -4533,6 +4534,7 @@ begin
Resync([]);
// We get the new values here, since the bookmark should now be correct to find the record later on when doing applyupdates.
R:=AddToChangeList(UpdateStates[wasInsert]);
if Assigned(R) then
R.FBookmark:=BookMark;
{$ifdef dsdebug}
writeln ('Post: Browse mode set');