mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix a crash with PixelFed
This commit is contained in:
parent
26760c8e15
commit
c1575fbf5f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue