mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 14:01:49 +02:00
Debugger: Fix possible crash on start of IDE
git-svn-id: trunk@28182 -
This commit is contained in:
parent
cbbf6dfa12
commit
e0ad0b5556
@ -1874,6 +1874,8 @@ var
|
|||||||
TheDialog: TIDEInspectDlg;
|
TheDialog: TIDEInspectDlg;
|
||||||
begin
|
begin
|
||||||
TheDialog := TIDEInspectDlg(FDialogs[ddtInspect]);
|
TheDialog := TIDEInspectDlg(FDialogs[ddtInspect]);
|
||||||
|
if (SourceEditorManager.GetActiveSE = nil) then
|
||||||
|
exit;
|
||||||
if SourceEditorManager.GetActiveSE.SelectionAvailable then
|
if SourceEditorManager.GetActiveSE.SelectionAvailable then
|
||||||
TheDialog.Execute(SourceEditorManager.GetActiveSE.Selection)
|
TheDialog.Execute(SourceEditorManager.GetActiveSE.Selection)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user