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

Commit d85621c9 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Don't crash when extra logging is enabled.

Change-Id: I76cf8db0f51ed33e91acee9636180e8d7c0b5ff9
parent 7755cdd6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2022,7 +2022,11 @@ class PackageManagerService extends IPackageManager.Stub {
                    ActivityInfo ai = getActivityInfo(pa.mActivity, flags);
                    if (DEBUG_PREFERRED) {
                        Log.v(TAG, "Got preferred activity:");
                        ai.dump(new LogPrinter(Log.INFO, TAG), "  ");
                        if (ai != null) {
                            ai.dump(new LogPrinter(Log.VERBOSE, TAG), "  ");
                        } else {
                            Log.v(TAG, "  null");
                        }
                    }
                    if (ai != null) {
                        for (int j=0; j<N; j++) {