Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b46774f authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

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

parents 54f9b1ee 9708669b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2419,7 +2419,7 @@ class ContextImpl extends Context {
                        int res = -1;
                        int res = -1;
                        try {
                        try {
                            res = mount.mkdirs(getPackageName(), dir.getAbsolutePath());
                            res = mount.mkdirs(getPackageName(), dir.getAbsolutePath());
                        } catch (RemoteException e) {
                        } catch (Exception ignored) {
                        }
                        }
                        if (res != 0) {
                        if (res != 0) {
                            Log.w(TAG, "Failed to ensure directory: " + dir);
                            Log.w(TAG, "Failed to ensure directory: " + dir);