Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2053743002 Cr-Commit-Position: refs/heads/master@{#399281} (cherry picked from commit 16bc9a2) Review-Url: https://codereview.chromium.org/2065023002 Cr-Commit-Position: refs/branch-heads/2743@{crosswalk-project#351} Cr-Branched-From: 2b3ae3b-refs/heads/master@{#394939}
- Loading branch information