소스 검색

pastojs: fixed empty except on statement

git-svn-id: trunk@40084 -
Mattias Gaertner 7 년 전
부모
커밋
e539a385e4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/pastojs/src/fppas2js.pp

+ 2 - 1
packages/pastojs/src/fppas2js.pp

@@ -18501,7 +18501,8 @@ begin
         CreatePrimitiveDotExpr(FBuiltInNames[pbivnExceptObject],El),El);
       ListFirst.A:=V;
       // add statements
-      AddToStatementList(ListFirst,ListLast,ConvertElement(El.Body,AContext),El);
+      if El.Body<>nil then
+        AddToStatementList(ListFirst,ListLast,ConvertElement(El.Body,AContext),El);
       end
     else if El.Body<>nil then
       // add statements