mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 07:59:35 +02:00
Codetools: fix crash when trying to add declaration for "foo := unit1;" Patch by WooBean007
This commit is contained in:
parent
e72f2533e7
commit
ba0c38e2b4
@ -13778,8 +13778,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