commit | d5b64d8f4a909d81be631e4438c43bfb71aaff98 | [log] [tgz] |
---|---|---|
author | Jerome Gaillard <jgaillard@google.com> | Fri Jan 03 16:46:27 2020 +0000 |
committer | Jerome Gaillard <jgaillard@google.com> | Fri Jan 03 18:36:09 2020 +0000 |
tree | 89871ee99c351aa8b080267e3964ff15a0370703 | |
parent | 0fe257a842f47b7b43cb981d7b7187fb7179fa58 [diff] |
Do not create a BufferedImage with a 0 dimension Use 1 instead of 0 when asked to create a BufferedImage with width or height equal to 0, as using 0 triggers a IllegalArgumentException. Bug: 146235522 Test: N/A Change-Id: I30b7b0dbc1b7143441b3389818d0789cf804f2d9 (cherry picked from commit b2b70068647a2fc02302ff99f07a5da1308ae956)