commit | ba9576d977c0379f5fb302c7db1b234b253919ad | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Thu Mar 16 17:42:04 2017 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Thu Mar 16 17:42:04 2017 -0700 |
tree | 4005d066200210436d58a48db57749956f162650 | |
parent | 2bd530e1562bcbf99b6d1b2f447b4b835d3bc43e [diff] |
AssetManager: Guard against null in array retrieval Resources does the right thing and throws NotFoundException if the result from AssetManager.getResourceTextArray() is null, but AssetManager itself doesn't guard from the native implementation returning null. This lets callers always protect against missing resources via catching NotFoundException. Change-Id: I4f7ad32819bc9598efb28dbb10a59ff5201ecfca Test: manual