* Check component is not nil prior to calling validateinsert

This commit is contained in:
Michaël Van Canneyt 2024-03-14 17:14:06 +01:00
parent 2273670aad
commit f1c4f0c879

View File

@ -482,6 +482,7 @@ end;
Procedure TComponent.ValidateContainer(AComponent: TComponent); Procedure TComponent.ValidateContainer(AComponent: TComponent);
begin begin
if Assigned(aComponent) then
AComponent.ValidateInsert(Self); AComponent.ValidateInsert(Self);
end; end;