Преглед изворни кода

* 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;