am 4b72eec3: Merge "Re-assingning local variable if mStringBlocks was initialized here. NPE is thrown otherwise."
* commit '4b72eec34c983abb7a3afcbadd74d3bd807c4765': Re-assingning local variable if mStringBlocks was initialized here. NPE is thrown otherwise.
This commit is contained in:
committed by
Android Git Automerger
commit
5fcfce965f
@@ -234,6 +234,7 @@ public final class AssetManager {
|
|||||||
StringBlock[] blocks = mStringBlocks;
|
StringBlock[] blocks = mStringBlocks;
|
||||||
if (blocks == null) {
|
if (blocks == null) {
|
||||||
ensureStringBlocks();
|
ensureStringBlocks();
|
||||||
|
blocks = mStringBlocks;
|
||||||
}
|
}
|
||||||
outValue.string = blocks[block].get(outValue.data);
|
outValue.string = blocks[block].get(outValue.data);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user