Mercurial > 510Connectbot
changeset 137:37665a94fc39
listpref value may be null
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 20 Jun 2014 11:05:04 -0700 |
parents | 398503d13f35 |
children | e312405090e1 |
files | src/com/five_ten_sg/connectbot/HostEditorActivity.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HostEditorActivity.java Thu Jun 19 15:59:57 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/HostEditorActivity.java Fri Jun 20 11:05:04 2014 -0700 @@ -355,7 +355,7 @@ // Fall through. } } - else if (pref instanceof ListPreference) { + else if ((pref instanceof ListPreference) && (value != null)) { ListPreference listPref = (ListPreference) pref; int entryIndex = listPref.findIndexOfValue(value.toString()); if (entryIndex >= 0) value = listPref.getEntries()[entryIndex];