mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 23:19:28 +02:00
codetools: safety check
git-svn-id: trunk@32459 -
This commit is contained in:
parent
09c6d11771
commit
e59acfda40
@ -1563,7 +1563,7 @@ begin
|
||||
NewTool:=Params.NewCodeTool;
|
||||
NewPos:=Params.NewPos;
|
||||
NewTopLine:=Params.NewTopLine;
|
||||
if NewPos.Code=nil then begin
|
||||
if (NewPos.Code=nil) or (NewNode=nil) then begin
|
||||
if Params.IdentifierTool.IsPCharInSrc(Params.Identifier) then
|
||||
Params.IdentifierTool.MoveCursorToCleanPos(Params.Identifier)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user