1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 13:44:40 +00:00

Prevent crash

This commit is contained in:
M66B 2020-11-04 08:44:38 +01:00
parent 0842f828a5
commit 532a47bc07

View file

@ -53,6 +53,13 @@ public class TupleKeyword {
} }
static List<TupleKeyword> from(Context context, Persisted data) { static List<TupleKeyword> from(Context context, Persisted data) {
if (data == null)
data = new Persisted();
if (data.selected == null)
data.selected = new String[0];
if (data.available == null)
data.available = new String[0];
List<TupleKeyword> result = new ArrayList<>(); List<TupleKeyword> result = new ArrayList<>();
List<String> keywords = new ArrayList<>(); List<String> keywords = new ArrayList<>();