Commit 64056f21 authored by Thomas's avatar Thomas
Browse files

Fix a crash with poll

parent d32f05df
Pipeline #298944 passed with stage
in 5 minutes and 43 seconds
......@@ -761,7 +761,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
poll_item_percent.setTypeface(null, Typeface.BOLD);
poll_item_text.setTypeface(null, Typeface.BOLD);
if (ownvotes.contains(j)) {
if (ownvotes != null && ownvotes.contains(j)) {
Drawable img = ContextCompat.getDrawable(context, R.drawable.ic_check_poll);
assert img != null;
final float scale = context.getResources().getDisplayMetrics().density;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment