mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 08:19:41 +02:00
Codetools: fix crash when trying to add declaration for "foo := unit1;" Patch by WooBean007
(cherry picked from commit ba0c38e2b4
)
This commit is contained in:
parent
972e988e00
commit
60d9e7d2d9
@ -13592,8 +13592,9 @@ begin
|
||||
FindContext:=ExprType.Context;
|
||||
|
||||
// ToDo: PPU, DCU
|
||||
|
||||
if FindContext.Node.Parent.Desc=ctnTypeDefinition then
|
||||
if (FindContext.Node<>nil) and (FindContext.Node.Parent<>nil) and
|
||||
(FindContext.Node.Parent.Desc=ctnTypeDefinition)
|
||||
then
|
||||
FindContext.Node:=FindContext.Node.Parent;
|
||||
case FindContext.Node.Desc of
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user