[Direct Action] Fix null tab case.
This patch fixes a NPE by guarding for null tabs. There are situations where a tab is not ready or available and direct action availability is queried. In that case a null tab would crash instead of reporting that this direct action is simply not yet available. Bug: 1041669 Change-Id: Idda1c166405c726cca416898fcd842606e74d3cc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2016625Reviewed-by:Boris Sazonov <bsazonov@chromium.org> Commit-Queue: Mathias Carlen <mcarlen@chromium.org> Cr-Commit-Position: refs/heads/master@{#735348}
Showing
Please register or sign in to comment