commit | f1f5ed542d43566f30e9f03f98de9bef717465ce | [log] [tgz] |
---|---|---|
author | Yohei Yukawa <yukawa@google.com> | Mon Mar 24 20:45:37 2014 +0900 |
committer | Yohei Yukawa <yukawa@google.com> | Mon Mar 24 20:54:03 2014 +0900 |
tree | 234ca8cd14132297511352d0a6c3bcce7942f36e | |
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