From 532a47bc07be52633675108e478d990bdf519d16 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 4 Nov 2020 08:44:38 +0100 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/TupleKeyword.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/TupleKeyword.java b/app/src/main/java/eu/faircode/email/TupleKeyword.java index d077547731..b3c7b43aca 100644 --- a/app/src/main/java/eu/faircode/email/TupleKeyword.java +++ b/app/src/main/java/eu/faircode/email/TupleKeyword.java @@ -53,6 +53,13 @@ public class TupleKeyword { } static List 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 result = new ArrayList<>(); List keywords = new ArrayList<>();