From c2fa27acf19cfde841964b95653b521b401ecbb9 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 15 Apr 2012 13:36:30 +0000 Subject: [PATCH] Fix crash in dbg-console, if dbg not active. issue #21712 git-svn-id: trunk@36795 - --- ide/debugmanager.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ide/debugmanager.pas b/ide/debugmanager.pas index 8789f4c963..89f28990a1 100644 --- a/ide/debugmanager.pas +++ b/ide/debugmanager.pas @@ -2321,7 +2321,8 @@ end; procedure TDebugManager.DoSendConsoleInput(AText: String); begin - FDebugger.SendConsoleInput(AText); + if FDebugger <> nil then + FDebugger.SendConsoleInput(AText); end; procedure TDebugManager.ProcessCommand(Command: word; var Handled: boolean);