am 4de1ca67: am 0bad998c: am fb15b768: Merge "Fix NPE when context.getFilesDir() returns null." into lmp-dev
* commit '4de1ca67d7340b3c2db1b7fc9262029886b3fd68': Fix NPE when context.getFilesDir() returns null.main
commit
e1d781bbbf
|
@ -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 New Issue