Browse Source

* No nil keys. Fix issue #39637

Michaël Van Canneyt 3 years ago
parent
commit
eccd1720c9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-css/src/fpcsstree.pp

+ 1 - 0
packages/fcl-css/src/fpcsstree.pp

@@ -580,6 +580,7 @@ end;
 
 procedure TCSSDeclarationElement.AddKey(aKey: TCSSElement);
 begin
+  if aKey=Nil then exit;
   if Not Assigned(FKeys) then
     FKeys:=TCSSElementList.Create(True);
   FKeys.Add(aKey);