diff options
| author | Gilles Debunne <debunne@google.com> | 2012-06-11 17:46:24 -0700 |
|---|---|---|
| committer | Gilles Debunne <debunne@google.com> | 2012-06-11 17:46:26 -0700 |
| commit | 2fba3387c31b675c419030145250e5be246c50b0 (patch) | |
| tree | cc5c16431db6e07c9b6a5fc0cc453e1c0d96c7f0 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
| parent | 913bf80416a81f2783376939e7ad0b956975b05c (diff) | |
Prevent a crash when maxLines is set to 0
Bug 6642222
Using setMaxLines(0) and setMinHeight(30) causes a crash
because Layout#getLineRangeForDraw() returns a [0,0] interval
in that case.
Accessing the Direction in draw causes a NPE.
Change-Id: If50f9b554e3cdc598a721b623992e9196982838c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions
