diff --git a/components/codetools/codecompletiontool.pas b/components/codetools/codecompletiontool.pas index 4e67f04d34..f25c357ba6 100644 --- a/components/codetools/codecompletiontool.pas +++ b/components/codetools/codecompletiontool.pas @@ -2073,6 +2073,7 @@ var NeededType: TCodeTreeNodeDesc; NextAVLNode: TAVLTreeNode; begin + if TreeOfCodeTreeNodeExt=nil then exit; AVLNode:=TreeOfCodeTreeNodeExt.FindLowest; while AVLNode<>nil do begin NextAVLNode:=TreeOfCodeTreeNodeExt.FindSuccessor(AVLNode);