diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java index 375427af8e..6f6fed7454 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java @@ -134,7 +134,7 @@ public void onSuccess(PaginatedResponse> result){ return; maxID=result.maxID; onDataLoaded(result.items.stream().filter(n->n.type!=null).collect(Collectors.toList()), !result.items.isEmpty()); - bannerHelper.onBannerBecameVisible(); + if(bannerHelper!=null) bannerHelper.onBannerBecameVisible(); reloadingFromCache=false; if (getParentFragment() instanceof NotificationsFragment nf) { nf.updateMarkAllReadButton();