Bug 1211780 - Don't try to use oldPasswordField if it's null. r=dolske

This commit is contained in:
byron jones 2015-10-07 11:16:07 +05:30
Родитель c3e24823e8
Коммит 61c233d099
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -714,7 +714,8 @@ var LoginManagerContent = {
}
log("Password field (new) id/name is: ", newPasswordField.id, " / ", newPasswordField.name);
log("Password field (old) id/name is: ", oldPasswordField.id, " / ", oldPasswordField.name);
if (oldPasswordField)
log("Password field (old) id/name is: ", oldPasswordField.id, " / ", oldPasswordField.name);
return [usernameField, newPasswordField, oldPasswordField];
},