From 26218f64af7baa3061f3f26db658d9f6fa6c4440 Mon Sep 17 00:00:00 2001 From: Adam Mills Date: Sun, 25 Jun 2017 18:09:08 -0400 Subject: [PATCH] Fix exception when no password is configured (#315) --- src/layouts/login-form.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/login-form.html b/src/layouts/login-form.html index ccae976ba6..6f3f5e3a1d 100644 --- a/src/layouts/login-form.html +++ b/src/layouts/login-form.html @@ -131,7 +131,9 @@ Polymer({ isValidatingChanged: function (newVal) { if (!newVal) { this.async(function () { - this.$.passwordInput.inputElement.inputElement.focus(); + if (this.$.passwordInput.inputElement.inputElement) { + this.$.passwordInput.inputElement.inputElement.focus(); + } }.bind(this), 10); } },