Ignore JSON exceptions in getUsageCounts instead of printing them

This commit is contained in:
Alexander Bakker 2022-04-10 16:50:23 +02:00
parent 339a31b0f3
commit 927ea50c33

View file

@ -208,9 +208,7 @@ public class Preferences {
JSONObject json = arr.getJSONObject(i);
usageCounts.put(UUID.fromString(json.getString("uuid")), json.getInt("count"));
}
} catch (JSONException e) {
e.printStackTrace();
} catch (JSONException ignored) {
}
return usageCounts;