mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 01:45:32 +00:00
fix(android/engine): Change getList() to return an empty list
This prevents the NullPointerException in CloudRepository.prepareResourcesUpdateQuery() when the list doesn't exist.
This commit is contained in:
parent
7bdf03e481
commit
cfd8abc744
1 changed files with 1 additions and 1 deletions
|
|
@ -469,7 +469,7 @@ public final class KeyboardPickerActivity extends BaseActivity {
|
|||
// Gets a raw list of installed lexical models.
|
||||
@SuppressWarnings("unchecked")
|
||||
private static ArrayList<HashMap<String, String>> getList(Context context, String filename) {
|
||||
ArrayList<HashMap<String, String>> list = null;
|
||||
ArrayList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();
|
||||
File file = new File(context.getDir("userdata", Context.MODE_PRIVATE), filename);
|
||||
if (file.exists()) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue