mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 19:35:32 +00:00
fix(android/engine): Check if cache file exists before deleting
This commit is contained in:
parent
eef627798c
commit
ee82ea8732
1 changed files with 3 additions and 1 deletions
|
|
@ -175,7 +175,9 @@ public class CloudRepository {
|
|||
// We should also pre-emptively clear out the old cache file
|
||||
// in case of an app close or crash.
|
||||
File file = CloudDataJsonUtil.getLexicalModelCacheFile(context);
|
||||
file.delete();
|
||||
if (file != null) {
|
||||
file.delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue