added nil check for Deactivate

git-svn-id: trunk@5452 -
This commit is contained in:
mattias 2004-05-10 08:10:07 +00:00
parent a429c83148
commit 106d63ecce

View File

@ -338,7 +338,9 @@ procedure TSynBaseCompletionForm.Deactivate;
begin begin
Visible := False; Visible := False;
{$IFDEF SYN_LAZARUS} {$IFDEF SYN_LAZARUS}
SetCaretRespondToFocus(TCustomSynEdit(FCurrentEditor).Handle,true); if (FCurrentEditor<>nil) and (TCustomSynEdit(fCurrentEditor).HandleAllocated)
then
SetCaretRespondToFocus(TCustomSynEdit(FCurrentEditor).Handle,true);
{$ENDIF} {$ENDIF}
end; end;