Fix crash, introduced in r63316 #000ea7c493 "auto complete on typing". Issue #37184

git-svn-id: trunk@63322 -
This commit is contained in:
martin 2020-06-07 12:04:43 +00:00
parent 00aa0ed701
commit 79ba6dbb06

View File

@ -2142,7 +2142,9 @@ begin
FAutoHideHintTimer.Enabled := False;
if AutoStartCompletionBoxTimer<>nil then
AutoStartCompletionBoxTimer.Enabled:=false;
if FManager.ActiveEditor.FCodeCompletionState.State in [ccsDot, ccsOnTyping] then
if (FManager.ActiveEditor <> nil) and
(FManager.ActiveEditor.FCodeCompletionState.State in [ccsDot, ccsOnTyping])
then
FManager.ActiveEditor.FCodeCompletionState.State := ccsReady;
if FAutoShown then
HideHint;