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

Commit 81f311d0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when mDataDir is null" into main

parents 8727697b 67946e08
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1104,6 +1104,10 @@ public final class LoadedApk {
            return true;
        }

        if (mDataDir == null) {
            return false;
        }

        // Temporarily disable logging of disk reads on the Looper thread as this is necessary -
        // and the loader will access the directory anyway if we don't check it.
        StrictMode.ThreadPolicy oldThreadPolicy = allowThreadDiskReads();