mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Delete invalid classifier data files
This commit is contained in:
@@ -396,7 +396,12 @@ public class MessageClassifier {
|
||||
File file = getFile(context);
|
||||
if (file.exists()) {
|
||||
String json = Helper.readText(file);
|
||||
fromJson(new JSONObject(json));
|
||||
try {
|
||||
fromJson(new JSONObject(json));
|
||||
} catch (JSONException ex) {
|
||||
Log.e(ex);
|
||||
file.delete();
|
||||
}
|
||||
}
|
||||
|
||||
loaded = true;
|
||||
|
||||
Reference in New Issue
Block a user