summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2017-06-14 13:13:26 +0100
committerNicolas Geoffray <ngeoffray@google.com>2017-06-14 14:30:57 +0100
commitdf8dc5a87fd0340b4817fac1100b8cfcf081e6b6 (patch)
tree2d1db2ae864a3a47ee6aed24039dfb14deb4cd4d /include/ScopedJavaUnicodeString.h
parent57f5fe1ee73a17f202c4431c72eb9f169ace4125 (diff)
Throw an exception if we could not open a converter.
In order to rule out the address being null in crashes such as: dalvik.system.InMemoryDexClassLoaderTest#test_oneDexDirect_callInstanceMethod java.lang.IllegalArgumentException: Non-positive averageBytesPerChar at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:205) at java.nio.charset.CharsetEncoderICU.<init>(CharsetEncoderICU.java:97) at java.nio.charset.CharsetEncoderICU.newInstance(CharsetEncoderICU.java:75) Seen here: http://build.chromium.org/p/client.art/builders/bullhead-armv8-gcstress-ndebug/builds/1 bug: 62612946 Test: run-libcore-tests Change-Id: Idde0b5f6a83cb7e54e9ab1f6ba22d394fb67aa18
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions