From 858f259b96c00caa0917272f53f4142b2affc71c Mon Sep 17 00:00:00 2001 From: Simon Eric Scholl Date: Fri, 9 Feb 2018 16:50:39 +0100 Subject: [PATCH] avoid null pointer exception fixes #1814 --- app/assets/javascripts/app/controllers/_integration/ldap.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_integration/ldap.coffee b/app/assets/javascripts/app/controllers/_integration/ldap.coffee index f3267e3f2..7c5d6f794 100644 --- a/app/assets/javascripts/app/controllers/_integration/ldap.coffee +++ b/app/assets/javascripts/app/controllers/_integration/ldap.coffee @@ -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 ''