avoid null pointer exception

fixes #1814
This commit is contained in:
Simon Eric Scholl 2018-02-09 16:50:39 +01:00 committed by GitHub
parent 351b0dec66
commit 858f259b96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -294,7 +294,7 @@ class ConnectionWizard extends App.WizardModal
option = ''
options = {}
if !_.isEmpty data.attributes
if !_.isEmpty data.attributes && !_.isEmpty data.attributes.namingcontexts
for dn in data.attributes.namingcontexts
options[dn] = dn
if option is ''