commit | eadb2c8b643b195d38ca039162d165f378d543a4 | [log] [tgz] |
---|---|---|
author | Andrey Loskutov <loskutov@gmx.de> | Wed May 03 15:03:49 2017 +0200 |
committer | Andrey Loskutov <loskutov@gmx.de> | Fri May 05 07:04:28 2017 -0400 |
tree | 04e2d0488931c997315f8f272e34d244b59800c0 | |
parent | 5614bc4fc6e518d3a738ff8405eae57145a1bbe6 [diff] |
Bug 508105 - Error evaluating expressions with multibyte characters Don't use String.getBytes() and use indices from that array to call String.getCharAt(). If text contains multibyte characters, the length of the byte array will be higher as the number of characters, so the code will fail with StringIndexOutOfBoundsException sooner or later. Change-Id: Id68a7bec339c2076a2d291291a3d104c65021f69 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>