From 39d05ae018eb5ca827e18e63a61db61cfa9b3592 Mon Sep 17 00:00:00 2001 From: "Xiaolan.Lee" Date: Tue, 23 Dec 2014 18:10:26 +0800 Subject: [PATCH] Bugfix: Export pac from a FixedProfile without bypass list do not work. If a fixedProfle without any bypass list, pac generation will fail. This cause export pac failure, and switch profile which refer to this fixedprofile also not work properly. --- omega-pac/src/profiles.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omega-pac/src/profiles.coffee b/omega-pac/src/profiles.coffee index 8795b65..36a27fe 100644 --- a/omega-pac/src/profiles.coffee +++ b/omega-pac/src/profiles.coffee @@ -253,7 +253,7 @@ module.exports = exports = body = [ new U2.AST_Directive value: 'use strict' ] - if profile.bypassList + if profile.bypassList and profile.bypassList.length conditions = null for cond in profile.bypassList condition = Conditions.compile cond