Merge "Merge "Fix missing null checking" into oc-mr1-dev am: 93d436f4bc" into oc-mr1-dev-plus-aosp

This commit is contained in:
Android Build Merger (Role)
2017-09-15 02:49:26 +00:00
committed by Android (Google) Code Review

View File

@@ -637,7 +637,9 @@ public final class LoadedApk {
// as unbundled.
final String defaultSearchPaths = System.getProperty("java.library.path");
final boolean treatVendorApkAsUnbundled = !defaultSearchPaths.contains("/vendor/lib");
if (mApplicationInfo.getCodePath().startsWith("/vendor/") && treatVendorApkAsUnbundled) {
if (mApplicationInfo.getCodePath() != null
&& mApplicationInfo.getCodePath().startsWith("/vendor/")
&& treatVendorApkAsUnbundled) {
isBundledApp = false;
}