Download location: Fix an issue in getAllPrivateDownloadsDirectories.
Android API Context.getExternalFilesDirs may return a null File object
when the user unmount the SD card at some point. This CL handles the
null object cleanly so it won't trigger NullPointerException.
TBR=nyquist@chromium.org
Bug: 838419
Change-Id: I0efc8c793e45383d49038688b9af4076eeb54328
Reviewed-on: https://chromium-review.googlesource.com/1056287
Reviewed-by: David Trainor <dtrainor@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558418}
CrOS-Libchrome-Original-Commit: 25895d2377d9dd3181981583e49b1ccb80c8bc53
1 file changed