Fix a crash with PixelFed

This commit is contained in:
Thomas 2023-07-22 10:38:47 +02:00
parent 26760c8e15
commit c1575fbf5f
1 changed files with 1 additions and 1 deletions

View File

@ -731,7 +731,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
}
if (status.isMaths == null) {
if (Helper.mathsPattern.matcher(status.content).find()) {
if (status.content != null && Helper.mathsPattern.matcher(status.content).find()) {
holder.binding.actionButtonMaths.setVisibility(View.VISIBLE);
status.isMaths = true;
} else {