codetools: safety check

git-svn-id: trunk@32459 -
This commit is contained in:
mattias 2011-09-22 20:57:28 +00:00
parent 09c6d11771
commit e59acfda40

View File

@ -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