mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '0bad998c52cc0ed610e4fef745c438472f14a7e4': Fix NPE when context.getFilesDir() returns null.
This commit is contained in:
commit
4de1ca67d7
@ -138,6 +138,7 @@ public class PersonalizationHelper {
|
|||||||
final File filesDir = context.getFilesDir();
|
final File filesDir = context.getFilesDir();
|
||||||
if (filesDir == null) {
|
if (filesDir == null) {
|
||||||
Log.e(TAG, "context.getFilesDir() returned null.");
|
Log.e(TAG, "context.getFilesDir() returned null.");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (!FileUtils.deleteFilteredFiles(filesDir, new DictFilter(dictNamePrefix))) {
|
if (!FileUtils.deleteFilteredFiles(filesDir, new DictFilter(dictNamePrefix))) {
|
||||||
Log.e(TAG, "Cannot remove all existing dictionary files. filesDir: "
|
Log.e(TAG, "Cannot remove all existing dictionary files. filesDir: "
|
||||||
|
Loading…
Reference in New Issue
Block a user