diff options
| author | Yohei Yukawa <yukawa@google.com> | 2014-03-24 20:45:37 +0900 |
|---|---|---|
| committer | Yohei Yukawa <yukawa@google.com> | 2014-03-24 20:54:03 +0900 |
| commit | f1f5ed542d43566f30e9f03f98de9bef717465ce (patch) | |
| tree | 234ca8cd14132297511352d0a6c3bcce7942f36e /java/src/com/android/inputmethod/research/MainLogBuffer.java | |
| parent | a17195224b132563055bef762fda0f0d6840adcf (diff) | |
Check null before passing to Integer.parseInt
Just after user data is cleared, user preference associated with
PREF_KEYBOARD_LAYOUT is always empty. In such case, we might
want to return the default value immediately, rather than
calling Integer.parseInt(null) and catching NumberFormatException
unnecessarily.
BUG: 13472379
Change-Id: I8dca9a22780d057013c032bd1f56e730dcada3ce
Diffstat (limited to 'java/src/com/android/inputmethod/research/MainLogBuffer.java')
0 files changed, 0 insertions, 0 deletions
