From 51cf1a4ec53d29b1bf7435e0df1e840f96f7548c Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Wed, 8 May 2019 20:19:31 +0200 Subject: [PATCH] fix crash in StatusBaseViewHolder.getVisibilityDescription --- .../com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java index a92452140..3cf97b6e0 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java @@ -742,6 +742,9 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder { } private CharSequence getVisibilityDescription(Context context, Status.Visibility visibility) { + if(visibility == null) { + return ""; + } int resource; switch (visibility) { case PUBLIC: