From 86181d3f17f1071bae3a796014bca62657d39fd4 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Mon, 20 Aug 2018 17:37:08 -0700 Subject: [PATCH] Fix null reference profile error. Fix #1593. --- .../src/module/proxy/proxy_impl.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/omega-target-chromium-extension/src/module/proxy/proxy_impl.coffee b/omega-target-chromium-extension/src/module/proxy/proxy_impl.coffee index 634625e..b43ae99 100644 --- a/omega-target-chromium-extension/src/module/proxy/proxy_impl.coffee +++ b/omega-target-chromium-extension/src/module/proxy/proxy_impl.coffee @@ -23,7 +23,9 @@ class ProxyImpl ref_set = OmegaPac.Profiles.allReferenceSet(profile, options, profileNotFound: @_profileNotFound.bind(this)) for own _, name of ref_set - referenced_profiles.push(OmegaPac.Profiles.byName(name, options)) + profile = OmegaPac.Profiles.byName(name, options) + if profile + referenced_profiles.push(profile) @_proxyAuth.setProxies(referenced_profiles) ) getProfilePacScript: (profile, meta, options) ->