Fix crash from "IDE: Show icons in the tree of key mapping options. Issue #35923. Patch from FTurtle"

git-svn-id: trunk@64362 -
This commit is contained in:
martin 2021-01-09 13:48:44 +00:00
parent 746dea29a9
commit 8c10092997

View File

@ -437,7 +437,7 @@ var
IDECommand: TIDECommand;
begin
IDECommand:=IDECommandList.FindIDECommand(AKeyRelation.Command);
if IDECommand.UserCount=0 then
if (IDECommand=nil) or (IDECommand.UserCount=0) then
Exit(imgKeyItem);
Result:=IDECommand.Users[0].ImageIndex;
if Result=-1 then