Fix null reference profile error. Fix #1593.

This commit is contained in:
FelisCatus 2018-08-20 17:37:08 -07:00
parent bfb49b1b19
commit 86181d3f17

View File

@ -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) ->