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

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

Merge "Fix NPE in ActivityThread.installProvider()." into main

parents 02ce5a51 afb3e3cd
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -8288,12 +8288,12 @@ public final class ActivityThread extends ClientTransactionHandler
            }
            }
            Context c = null;
            Context c = null;
            ApplicationInfo ai = info.applicationInfo;
            ApplicationInfo ai = info.applicationInfo;
            if (context.getPackageName().equals(ai.packageName)) {
            if (context != null && context.getPackageName().equals(ai.packageName)) {
                c = context;
                c = context;
            } else if (mInitialApplication != null &&
            } else if (mInitialApplication != null &&
                    mInitialApplication.getPackageName().equals(ai.packageName)) {
                    mInitialApplication.getPackageName().equals(ai.packageName)) {
                c = mInitialApplication;
                c = mInitialApplication;
            } else {
            } else if (context != null) {
                try {
                try {
                    c = context.createPackageContext(ai.packageName,
                    c = context.createPackageContext(ai.packageName,
                            Context.CONTEXT_INCLUDE_CODE);
                            Context.CONTEXT_INCLUDE_CODE);