Skip to content
Snippets Groups Projects
Commit 79ff803c authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix NPE when context.getFilesDir() returns null.

Bug: 16416948
Change-Id: I0fac5ab26d6efbadbd688d033a79f6705e0161a5
parent ab661e3e
No related branches found
No related tags found
No related merge requests found
......@@ -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: "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment