Chromium Code Reviews
Description[Media Router WebUI] Prevent error when route becomes null
Once the route-details element is stamped, getSinkForRoute_ is bound to
currentRoute_. This becomes null if the route is stopped which causes
getSinkForRoute_ to throw an innocuous but noisy error. This change adds
a check of the route before dereferencing it.
BUG=614144
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/16bc9a232bd6ef00891eb061687d23f77ee29efd
Cr-Commit-Position: refs/heads/master@{#399281}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Return null instead of undefined #
Total comments: 1
Patch Set 3 : Remove undefined from closure type #Messages
Total messages: 13 (5 generated)
|