Browse Source

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.
Xiaolan.Lee 11 years ago
parent
commit
39d05ae018
1 changed files with 1 additions and 1 deletions
  1. 1 1
      omega-pac/src/profiles.coffee

+ 1 - 1
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