Преглед на файлове

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