diff --git a/components/codetools/finddeclarationtool.pas b/components/codetools/finddeclarationtool.pas index dbd785cec1..86388df5e2 100644 --- a/components/codetools/finddeclarationtool.pas +++ b/components/codetools/finddeclarationtool.pas @@ -9805,6 +9805,10 @@ var CurNodeStart: Integer; begin // for example 'A.B' + if (ExprType.Context.Node=nil) then + // 'a:array[0. ' + // 'f:=1. ' + exit; if fdfExtractOperand in Params.Flags then Params.AddOperandPart('.'); if (not (NextAtomType in [vatSpace,vatIdentifier,vatPreDefIdentifier])) then