Merge "Guard against MountService throwing NPE." into lmp-mr1-dev

This commit is contained in:
Jeff Sharkey
2015-01-09 19:14:27 +00:00
committed by Android (Google) Code Review

View File

@@ -2419,7 +2419,7 @@ class ContextImpl extends Context {
int res = -1;
try {
res = mount.mkdirs(getPackageName(), dir.getAbsolutePath());
} catch (RemoteException e) {
} catch (Exception ignored) {
}
if (res != 0) {
Log.w(TAG, "Failed to ensure directory: " + dir);