Merge "Fix missing null checking" into oc-mr1-dev

am: 93d436f4bc

Change-Id: Ib0a68cdf2d45141895191b7e2250ab0505c5a7ea
This commit is contained in:
Jiyong Park
2017-09-15 02:47:46 +00:00
committed by android-build-merger

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;
}