浏览代码

* fixed tonnode.getcopy crash in case there is no exception variable

git-svn-id: trunk@8091 -
Jonas Maebe 18 年之前
父节点
当前提交
1a522594ec
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/nflw.pas

+ 4 - 1
compiler/nflw.pas

@@ -1439,7 +1439,10 @@ implementation
          n : tonnode;
       begin
          n:=tonnode(inherited dogetcopy);
-         n.excepTSymtable:=excepTSymtable.getcopy;
+         if assigned(exceptsymtable) then
+           n.exceptsymtable:=exceptsymtable.getcopy
+         else
+           n.exceptsymtable:=nil;
          n.excepttype:=excepttype;
          result:=n;
       end;