mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 18:25:58 +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);
|
||||
|
||||
begin
|
||||
AComponent.ValidateInsert(Self);
|
||||
if Assigned(aComponent) then
|
||||
AComponent.ValidateInsert(Self);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user