Do not merge.

Don't crash when extra logging is enabled.

Change-Id: Iaf0900fe9d541967d2b2f11d8900c290c63a102e
This commit is contained in:
Marco Nelissen
2010-09-03 09:25:33 -07:00
parent 30264c9b85
commit ef5afa073b

View File

@@ -1997,7 +1997,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++) {