Merge "Fix NPE when adding WebView to ResourcesManager" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-05 20:41:56 +00:00
committed by Android (Google) Code Review

View File

@@ -945,7 +945,7 @@ public class ResourcesManager {
final ResourcesKey key = mResourceImpls.keyAt(i);
final WeakReference<ResourcesImpl> weakImplRef = mResourceImpls.valueAt(i);
final ResourcesImpl impl = weakImplRef != null ? weakImplRef.get() : null;
if (impl != null && key.mResDir.equals(assetPath)) {
if (impl != null && Objects.equals(key.mResDir, assetPath)) {
if (!ArrayUtils.contains(key.mLibDirs, libAsset)) {
final int newLibAssetCount = 1 +
(key.mLibDirs != null ? key.mLibDirs.length : 0);