* 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,7 +482,8 @@ end;
Procedure TComponent.ValidateContainer(AComponent: TComponent);
begin
AComponent.ValidateInsert(Self);
if Assigned(aComponent) then
AComponent.ValidateInsert(Self);
end;