* don't crash in case a symbol is not found in type/var/const section

git-svn-id: trunk@23264 -
This commit is contained in:
florian 2012-12-31 20:24:55 +00:00
parent 85ae82def4
commit 288820715d

View File

@ -2210,7 +2210,7 @@ implementation
begin
{ if a generic is parsed and when we are inside an with block,
a symbol might not be defined }
if (df_generic in current_procinfo.procdef.defoptions) and
if assigned(current_procinfo) and (df_generic in current_procinfo.procdef.defoptions) and
findwithsymtable then
begin
{ create dummy symbol, it will be freed later on }