diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/NotificationsListAdapter.java b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/NotificationsListAdapter.java index 549f51d73..7ee1e1153 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/NotificationsListAdapter.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/NotificationsListAdapter.java @@ -288,10 +288,12 @@ public class NotificationsListAdapter extends BaseAdapter implements OnPostActio holder.status_document_container.setVisibility(View.VISIBLE); String content = status.getContent(); - content = content.replaceAll("

","

"); - content = content.replaceAll("

",""); - if( content.endsWith("

") ) - content = content.substring(0,content.length() -10); + if( content != null) { + content = content.replaceAll("

", "

"); + content = content.replaceAll("

", ""); + if (content.endsWith("

")) + content = content.substring(0, content.length() - 10); + } SpannableString spannableString = Helper.clickableElements(context, content, status.getReblog() != null?status.getReblog().getMentions():status.getMentions(), true);