mirror of
https://codeberg.org/tom79/Fedilab
synced 2025-01-20 14:38:24 +01:00
Fix a crash with PixelFed
This commit is contained in:
parent
26760c8e15
commit
c1575fbf5f
@ -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 New Issue
Block a user