Commit fbf527e8 authored by Steven Bennetts's avatar Steven Bennetts Committed by Commit Bot

network_config.js: Avoid assert when vpnType_ is undefined

With Polymer2, observers may be called with undefined parameters.
updateVpnType_() which predates the migration was assuming that
vpnType_ was defined.

Bug: 1068533
Change-Id: I6583d7ec72b591dcc4dcaa75a922f5de36373655
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139442Reviewed-by: default avatarJames Vecore <vecore@google.com>
Commit-Queue: Steven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#757210}
parent 64dc1b81
...@@ -990,7 +990,7 @@ Polymer({ ...@@ -990,7 +990,7 @@ Polymer({
/** @private */ /** @private */
updateVpnType_() { updateVpnType_() {
if (this.configProperties_ === undefined) { if (this.configProperties_ === undefined || this.vpnType_ === undefined) {
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment