Explorar o código

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

git-svn-id: trunk@8091 -
Jonas Maebe %!s(int64=18) %!d(string=hai) anos
pai
achega
1a522594ec
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;