Merge "Fix NPE when context.getFilesDir() returns null." into lmp-dev
This commit is contained in:
commit
fb15b768dd
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ public class PersonalizationHelper {
|
|||
final File filesDir = context.getFilesDir();
|
||||
if (filesDir == null) {
|
||||
Log.e(TAG, "context.getFilesDir() returned null.");
|
||||
return;
|
||||
}
|
||||
if (!FileUtils.deleteFilteredFiles(filesDir, new DictFilter(dictNamePrefix))) {
|
||||
Log.e(TAG, "Cannot remove all existing dictionary files. filesDir: "
|
||||
|
|
Loading…
Reference in a new issue