From 91bf1b277fb719bfc4bdf387d3dbb41bb5e6114c Mon Sep 17 00:00:00 2001 From: sk Date: Sun, 27 Aug 2023 13:52:31 +0200 Subject: [PATCH] fix null-pointer exception in filter result closes sk22#774 --- .../main/java/org/joinmastodon/android/model/FilterResult.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/FilterResult.java b/mastodon/src/main/java/org/joinmastodon/android/model/FilterResult.java index fd5088bbc..8a705eba7 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/FilterResult.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/FilterResult.java @@ -14,6 +14,7 @@ public class FilterResult extends BaseModel { @Override public void postprocess() throws ObjectValidationException { super.postprocess(); - if (filter != null) filter.postprocess(); + if(filter!=null) filter.postprocess(); + if(keywordMatches==null) keywordMatches=List.of(); } }