mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 07:26:24 +02:00
* Check component is not nil prior to calling validateinsert
This commit is contained in:
parent
2273670aad
commit
f1c4f0c879
@ -482,7 +482,8 @@ end;
|
|||||||
Procedure TComponent.ValidateContainer(AComponent: TComponent);
|
Procedure TComponent.ValidateContainer(AComponent: TComponent);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
AComponent.ValidateInsert(Self);
|
if Assigned(aComponent) then
|
||||||
|
AComponent.ValidateInsert(Self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user