android: Don't crash when a bad ACTION_VIEW intent is received.
ACTION_VIEW intents should contain a Uri as data, but in some cases they might not (explicit intent incorrectly set, for instance). Don't crash in this case. For instance, adb shell am start -a android.intent.action.VIEW -n org.chromium.chrome/com.google.android.apps.chrome.Main would crash, this fixes it. BUG=742294 Change-Id: Ic44d7cb656d193449363ef63506e0d9852a6e782 Reviewed-on: https://chromium-review.googlesource.com/569964 Commit-Queue: Benoit L <lizeb@chromium.org> Reviewed-by:Nicolas Dossou-Gbété <dgn@chromium.org> Reviewed-by:
Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#487438}
Showing
Please register or sign in to comment